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

    Class TimeoutError

    TimeoutError is a custom error class that extends the built-in Error class. It is used to represent an error that occurs when an operation exceeds a predefined time limit.

    Hierarchy

    • Error
      • TimeoutError
    Index

    Constructors

    • Parameters

      • Optionaloptions: ErrorOptions

      Returns TimeoutError

    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