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
Properties
response?
readonly optional response?: unknown;Inherited from
statusCode
readonly statusCode: number;Inherited from
Methods
fromResponse()
static fromResponse(
statusCode,
body,
headers?
): VectaPayError;Parameters
statusCode
number
body
unknown
headers?
ErrorHeaders = {}
Returns
Inherited from
network()
static network(message): VectaPayError;Parameters
message
string
Returns
Inherited from
timeout()
static timeout(timeoutMs): VectaPayError;Parameters
timeoutMs
number
Returns
Inherited from
Last updated on