Constructor
new DataException(codeopt, messageopt, innerMessageopt, modelopt, fieldopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
code |
string |
<optional> |
A string that represents an error code |
message |
string |
<optional> |
The error message |
innerMessage |
string |
<optional> |
The error inner message |
model |
string |
<optional> |
The target model |
field |
string |
<optional> |
The target field |
Properties:
Name | Type | Description |
---|---|---|
code |
string | A string that represents an error code e.g. EDATA |
message |
string | The error message. |
innerMessage |
string | The error inner message. |
status |
number | A number that represents an error status. This error status may be used for throwing the approriate HTTP error. |
Extends
- Error