Class NatsError

Hierarchy

  • Error
    • NatsError

Constructors

  • Api

    private

    Parameters

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

    Returns NatsError

Properties

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

Type declaration

  • operation: string
  • subject: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns ApiError

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • Parameters

    • code: string
    • Optional chainedError: Error

    Returns NatsError

Generated using TypeDoc