new DataPortalError(modeltype, modelName, action, interceptedError)
Creates a data portal error object.
Parameters:
Name | Type | Description |
---|---|---|
modeltype |
string | The type of the model the error occurred in. |
modelName |
string | The name of the model the error occurred in. |
action |
bo.shared.DataPortalAction | The data portal action the error occurred in. |
interceptedError |
error | The error to be wrapped. |
- See:
-
- Error for further information.
Throws:
-
Argument error: The model type must be a non-empty string.
-
Argument error: The model name must be a non-empty string.
-
Argument error: The action must be a DataPortalAction object.
Extends
- Error
Members
-
action :string
-
The name of the action executing that the intercepted error occurred in.
Type:
- string
-
innerError :error
-
The intercepted error of the data portal action.
Type:
- error
-
message :string
-
Human-readable description of the error.
Type:
- string
-
modelName :string
-
The name of the model the intercepted error occurred in.
Type:
- string
-
modelType :string
-
The type of the model the intercepted error occurred in.
Type:
- string
-
name :string
-
The name of the error type.
Type:
- string
- Default Value:
-
- DataPortalError