OTRS API Reference JavaScript

Namespace: Core.Exception

Core. Exception

This namespace contains the functions for handling application errors.
Author:
  • OTRS AG
Source:

Methods

(static) ApplicationError(ErrorMessage, ErrorType)

This is the constructor for the application error object.
Parameters:
Name Type Description
ErrorMessage String The error message
ErrorType String The error type
Source:

(static) Init()

Initializes the module functionality.
Source:

(static) Throw(ErrorObject, ErrorType) → {Boolean}

Checks if the given ErrorObject is an ApplicationError of the given Type.
Parameters:
Name Type Description
ErrorObject Object The error object
ErrorType String The error type to be checked
Source:
Returns:
True, if ErrorObject is of given type, false otherwise.
Type
Boolean

(static) Throw(ErrorMessage, ErrorType)

This function throws an application error.
Parameters:
Name Type Description
ErrorMessage String The error message
ErrorType String The error type
Source: