NatsError
import { NatsError } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.0/nats-base-client/internal_mod.ts";
class NatsError extends Error { }
constructor(
message: string,
code: string,
chainedError?: Error,
);api_error?: ApiError;
chainedError?: Error;
code: string;
message: string;
name: string;
permissionContext?: {
operation: string;
subject: string;
queue?: string;
};isAuthError(): boolean;
isAuthTimeout(): boolean;
isJetStreamError(): boolean;
isPermissionError(): boolean;
isProtocolError(): boolean;
jsError(): ApiError | null;