Constructor
# new CustomAPIError(message, statusCode)
This class is the base class for all custom error classes
Parameters:
Name | Type | Description |
---|---|---|
message |
string
|
Error message |
statusCode |
number
|
HTTP status code |
Extends
- Error