Constructor
new APIError(errorCodeopt, errorMessageopt)
- Since:
- 0.0.1
Represents the APIError object.
Example
let apiError = new app.ApiError(errCode);
let apiError = new app.ApiError(errCode, errMessage);
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
errorCode |
number |
<optional> |
-1
|
XPress specific error code. |
errorMessage |
string |
<optional> |
api error
|
Error message. |
Extends
- Error
Members
errCode :number
App specific error code.
Type:
- number