Skip to Content

Class: TimeoutError

statusCode 0 — no HTTP response was received at all (offline, DNS failure, connection reset).

Extends

Constructors

Constructor

new TimeoutError(message): TimeoutError;

Parameters

message

string

Returns

TimeoutError

Overrides

NetworkError.constructor

Properties

response?

readonly optional response?: unknown;

Inherited from

NetworkError.response


statusCode

readonly statusCode: number;

Inherited from

NetworkError.statusCode

Methods

fromResponse()

static fromResponse( statusCode, body, headers? ): VectaPayError;

Parameters

statusCode

number

body

unknown

headers?

ErrorHeaders = {}

Returns

VectaPayError

Inherited from

NetworkError.fromResponse


network()

static network(message): VectaPayError;

Parameters

message

string

Returns

VectaPayError

Inherited from

NetworkError.network


timeout()

static timeout(timeoutMs): VectaPayError;

Parameters

timeoutMs

number

Returns

VectaPayError

Inherited from

NetworkError.timeout

Last updated on