Hierarchy

  • Error
    • NatsError

Constructors

  • Parameters

    • message: string
    • code: string
    • Optional chainedError: Error

    Returns NatsError

    Api

    private

Properties

api_error?: ApiError
cause?: unknown
chainedError?: Error
code: string
message: string
name: string
permissionContext?: {
    operation: string;
    queue?: string;
    subject: string;
}

Type declaration

  • operation: string
  • Optional queue?: string
  • subject: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • Parameters

    • code: string
    • Optional chainedError: Error

    Returns NatsError