|
GLG Toolkit, JavaScript Library
Version 4.6
|
A custom error handler object. More...
A custom error handler object.
A custom error handler can be installed via SetErrorHandler to provide custom error message processing.
Use CreateGlgErrorHandler to create an error handler.
Public Member Functions | |
| void | Error (String message, GlgErrorType error_type, Object e) |
| Custom error handling method. More... | |
Static Public Member Functions | |
| static GlgErrorHandler | CreateGlgErrorHandler (function error_handler_func) |
| Constructor. More... | |
|
static |
Constructor.
Creates an error handler that can be used as a parameter of the SetErrorHandler method. The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.
| error_handler_func | A custom error handler function to be invoked when an error occurs. The function's type signature must match the type signature of the Error method. |
| void Error | ( | String | message, |
| GlgErrorType | error_type, | ||
| Object | e | ||
| ) |
Custom error handling method.
This method is invoked with a diagnostic message when an error occurs.
| message | Error description |
| error_type | Specifies an error type, see GlgErrorType. |
| e | An optional exception that caused the error. If it is not null, it may be used to extract additional information about the error. |