Class: GenericError

GenericError

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


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

Initializes the generic IMA error.

Parameters:
Name Type Argument 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, *>

The data providing additional details related to this error.

Type:
  • Object.<string, *>

Methods


getHttpStatus()


getParams()