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

    Class DrainingConnectionError

    The ConnectionDrainingError class represents a specific type of error that occurs when a connection is being drained.

    This error is typically used in scenarios where connections need to be gracefully closed or when they are transitioning to an inactive state.

    The error message is set to "connection draining" and the error name is overridden to "DrainingConnectionError".

    Hierarchy

    • Error
      • DrainingConnectionError
    Index

    Constructors

    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