RequestError
Defined in: atomiq-sdk/src/errors/RequestError.ts:7
An error returned by the intermediary in a http response
Extends
Error
Extended by
Constructors
Constructor
new RequestError(msg, httpCode): RequestError;
Defined in: atomiq-sdk/src/errors/RequestError.ts:11
Parameters
| Parameter | Type |
|---|---|
msg | string |
httpCode | number |
Returns
RequestError
Overrides
Error.constructor
Properties
httpCode
httpCode: number;
Defined in: atomiq-sdk/src/errors/RequestError.ts:9
Methods
parse()
static parse(msg, httpCode): RequestError | OutOfBoundsError;
Defined in: atomiq-sdk/src/errors/RequestError.ts:28
Parses a message + a response code returned by the intermediary (LP) as an error
Parameters
| Parameter | Type | Description |
|---|---|---|
msg | string | Raw response |
httpCode | number | HTTP response status code |
Returns
RequestError | OutOfBoundsError