Describes a cancellation error.

Hierarchy

  • Error
    • CancellationError

Constructors

  • Initializes a new instance of that class.

    Parameters

    • Optional reason: "timeout"

      The known reason.

    • Optional message: string

      The custom message.

    • Optional innerError: any

      The inner error.

    Returns CancellationError

Properties

innerError?: any

The inner error.

message: string
name: string
reason?: "timeout"

The known reason.

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

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc