Skip to Content
SDK ReferenceReferenceClassesClass: RateLimitError

Class: RateLimitError

Extends

Constructors

Constructor

new RateLimitError( message, statusCode, response?, retryAfterHeader? ): RateLimitError;

Parameters

message

string

statusCode

number

response?

unknown

retryAfterHeader?

string | null

Returns

RateLimitError

Overrides

VectaPayError.constructor

Properties

response?

readonly optional response?: unknown;

Inherited from

VectaPayError.response


statusCode

readonly statusCode: number;

Inherited from

VectaPayError.statusCode

Accessors

retryAfterSeconds

Get Signature

get retryAfterSeconds(): number | undefined;
Returns

number | undefined

Methods

fromResponse()

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

Parameters

statusCode

number

body

unknown

headers?

ErrorHeaders = {}

Returns

VectaPayError

Inherited from

VectaPayError.fromResponse


network()

static network(message): VectaPayError;

Parameters

message

string

Returns

VectaPayError

Inherited from

VectaPayError.network


timeout()

static timeout(timeoutMs): VectaPayError;

Parameters

timeoutMs

number

Returns

VectaPayError

Inherited from

VectaPayError.timeout

Last updated on