Options
All
  • Public
  • Public/Protected
  • All
Menu

Timeout error, which is thrown when timeout passes but the predicate doesn't resolve with a truthy value

exception

Hierarchy

  • Error
    • TimeoutError

Index

Constructors

constructor

  • Creates a TimeoutError instance

    Parameters

    • Optional timeoutInMs: number

      Expected timeout, in milliseconds

    Returns TimeoutError

Properties

message

message: string

name

name: string

Optional stack

stack?: string

Static Optional prepareStackTrace

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc