function <ErrorHandlerFunctionName>( event, exception [, errorCode] [, origin] )
The arguments are:
event: identifies the jQuery event;
errorCode: an integer that identifies the type of error. This argument is optional;
By default, the OutSystems Platform provides you a basic error handler function called OsAlertExceptionHandler which displays an alert box with information about the error.
When implementing the error handling business logic in your function you may use the OutSystems Platform predefined error codes:
outsystems.osErrorCodes.ConnectionError: this is a connection error and occurs in the beginning or during an Ajax request to the server;