@nats-io/nats-core
    Preparing search index...

    Class ProtocolError

    Represents an error encountered during protocol operations. This class extends the built-in Error class, providing a specific error type called ProtocolError.

    A descriptive message describing the error.

    Optional parameters to include additional details.

    Hierarchy

    • Error
      • ProtocolError
    Index

    Constructors

    • Parameters

      • message: string
      • Optionaloptions: ErrorOptions

      Returns ProtocolError

    Properties

    cause?: unknown
    message: string
    name: string
    stack?: string
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void