Constructor
# new APIError(status, message)
Create a new instance of the APIError class.
Parameters:
Name | Type | Description |
---|---|---|
status |
number | the http status code. |
message |
string | A JSON parseable object. |
Example
{
"error_code": "SYS_001",
"errors": [
"error message 1"
]
}