GenericError

error/GenericError~ GenericError

Implementation of the ima.error.Error interface, providing more advanced error API.

Constructor

new GenericError(message, paramsopt, dropInternalStackFramesopt)

Source:
Initializes the generic IMA error.
Parameters:
Name Type Attributes Default Description
message string The message describing the cause of the error.
params Object.<string, *> <optional>
{} A data map providing additional details related to the error. It is recommended to set the status field to the HTTP response code that should be sent to the client.
dropInternalStackFrames boolean <optional>
true Whether or not the call stack frames referring to the constructors of the custom errors should be excluded from the stack of this error (just like the native platform call stack frames are dropped by the JS engine). This flag is enabled by default.

Members

_params :Object.<string, *>

Source:
The data providing additional details related to this error.
Type:
  • Object.<string, *>

Methods

getHttpStatus()

Source:

getParams()

Source: