Constructor
new APIError(message, code)
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | Human-readable error message from the API. |
code |
number | string | Machine-readable error code from the API. |
- Source:
Extends
- Error
Classes
Members
code :number|string
Machine-readable error code from the API.
Type:
- number | string
- Source:
msg :string
Human-readable error message from the API.
Type:
- string
- Source: