new DewError(message, codeopt, methodopt)
Creates a new DewError object which represents an ElDewrito communication error.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
message |
string | The error message. |
|
code |
DewErrorCode |
<optional> |
The error code. |
method |
string |
<optional> |
The internal method name. |
Members
code :DewErrorCode
The error code.
Type:
message :string
The error message.
Type:
- string
method :string
The internal method name.
Type:
- string
name :string
Type:
- string
Methods
getCodeName() → {string}
Gets the name of the error's code.
Returns:
A string representing the error's code.
- Type
- string