new DataPortalError(modeltype, modelName, action, interceptedError)

Creates a data portal error object.

Parameters

Name Type Optional 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.

Extends
Error
See also
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.

Properties

action  string

The name of the action executing that the intercepted error occurred in.

innerError  error

The intercepted error of the data portal action.

message  string

Human-readable description of the error.

modelName  string

The name of the model the intercepted error occurred in.

modelType  string

The type of the model the intercepted error occurred in.

name  string

The name of the error type.

Default value