An error thrown when a Data API operation timed out.

Depending on the method, this may be a request timeout occurring during a specific HTTP request, or can happen over the course of a method involving several requests in a row, such as a paginated insertMany.

Hierarchy (view full)

Constructors

Properties

message: string
name: string
stack?: string
timeout: number

The timeout that was set for the operation, in milliseconds.

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

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void