GenericError ⇐ Error 

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

Kind: global class
Extends: Error


new GenericError(message, [params], [dropInternalStackFrames]) 

Initializes the generic IMA error.

Param Type Default Description
message string   The message describing the cause of the error.
[params] Object.<string, \*> {} 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 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.

genericError._params : Object.<string, \*> 

The data providing additional details related to this error.

Kind: instance property of GenericError


genericError.getHttpStatus() 

Kind: instance method of GenericError


genericError.getParams() 

Kind: instance method of GenericError