Class NatsMessageError

A NATS message error.

Hierarchy

  • Error
    • NatsMessageError

Constructors

  • Initializes a new instance of that class.

    Parameters

    • cause: any

      The inner error.

    • msg: JsMsg

      The message that had thrown the error in cause.

    • Optional message: string

      The inner and additional message text, if needed.

    Returns NatsMessageError

Properties

cause: any

The inner error.

message: string
msg: JsMsg

The message that had thrown the error in cause.

name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc