This namespace contains the functions for handling application errors.
- 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) HandleFinalError(ErrorObject) → {Boolean}
-
This function handles the given error object (used as last possibility to catch the error).
Parameters:
Name Type Description ErrorObject
Object The error object - Source:
Returns:
If the error could be handled, returns if it was shown to the user or not.- Type
- Boolean
-
(static) Init()
-
Initializes the module functionality.
- Source:
-
(static) IsErrorOfType(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) ShowError(ErrorMessage, ErrorType)
-
This function shows an error message in the log.
Parameters:
Name Type Description ErrorMessage
String The error message. ErrorType
String The error type. - Source:
-
(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: