Class: ValidationError
400/422 — the request itself is invalid. details holds field-level messages when the backend returns an array.
Extends
Constructors
Constructor
new ValidationError(
message,
statusCode,
response?
): ValidationError;Parameters
message
string
statusCode
number
response?
unknown
Returns
ValidationError
Overrides
Properties
response?
readonly optional response?: unknown;Inherited from
statusCode
readonly statusCode: number;Inherited from
Accessors
details
Get Signature
get details(): string[] | undefined;Returns
string[] | undefined
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