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

    Class ConnectionError

    Represents an error that occurs when a network connection fails. Extends the built-in Error class to provide additional context for connection-related issues.

    A human-readable description of the error.

    Optional settings for customizing the error behavior.

    Hierarchy

    • Error
      • ConnectionError
    Index

    Constructors

    • Parameters

      • message: string
      • Optionaloptions: ErrorOptions

      Returns ConnectionError

    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