Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class NatsError
extends Error
import { NatsError } from "https://deno.land/x/natsws@v1.27.0/src/nats-base-client.ts";

Constructors

new
NatsError(
message: string,
code: string,
chainedError?: Error,
)

Properties

optional
api_error: ApiError
optional
chainedError: Error
code: string
message: string
name: string
optional
permissionContext: { operation: string; subject: string; }

Methods

isAuthError(): boolean
isAuthTimeout(): boolean
isJetStreamError(): boolean
isProtocolError(): boolean
jsError(): ApiError | null

Static Methods

errorForCode(code: string, chainedError?: Error): NatsError