Class: VectaPayError
Extends
Error
Extended by
ValidationErrorAuthenticationErrorPermissionErrorNotFoundErrorConflictErrorRateLimitErrorServerErrorNetworkError
Constructors
Constructor
new VectaPayError(
message,
statusCode,
response?
): VectaPayError;Parameters
message
string
statusCode
number
response?
unknown
Returns
VectaPayError
Overrides
Error.constructorProperties
response?
readonly optional response?: unknown;statusCode
readonly statusCode: number;Methods
fromResponse()
static fromResponse(
statusCode,
body,
headers?
): VectaPayError;Parameters
statusCode
number
body
unknown
headers?
ErrorHeaders = {}
Returns
VectaPayError
network()
static network(message): VectaPayError;Parameters
message
string
Returns
VectaPayError
timeout()
static timeout(timeoutMs): VectaPayError;Parameters
timeoutMs
number
Returns
VectaPayError
Last updated on