- During the Ajax refresh of an unescaped Expression with '<script>' tags;
By default, OutSystems provides you with a basic error handler function called OsAlertExceptionHandler , which displays an alert box with information about the error.
function <ErrorHandlerFunctionName>( event, exception [, errorCode] [, origin] )
The arguments are:
- event: jQuery event;
- errorCode: Integer that identifies the type of the error. This argument is optional;
The following error codes are predefined and you can use them in the logic of your function:
- outsystems.osErrorCodes.ConnectionError: this is a connection error and can occur at the beginning or during an Ajax request to the server;
How to Register the Error Handler Function
If you want to use OutSystems OsAlertExceptionHandler function, you must register it.