Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) Create a new ApiError object. |
Member Summary
Public Members | ||
public |
Whenever the error is operational or not |
|
public |
Whenever the error is public or not. |
|
public |
The message of the error |
|
public |
The name of the error |
|
public |
The status of the error |
Public Constructors
public constructor(options: Object) source
Create a new ApiError object.
Params:
Name | Type | Attribute | Description |
options | Object |
|
The options for the ApiError. |
options.message | string |
|
The message of the error. |
options.status | string |
|
The status code of the error. |
options.isPublic | boolean |
|
Whenever the error is public or not. |