const handleError = function handleError(data) {
// ...
}
faces.ajax.addOnError(handleError);
Implementation Requirements:
This function must accept a reference to an existing JavaScript function.
The JavaScript function reference must be added to a list of callbacks, making it possible
to register more than one callback by invoking faces.ajax.addOnError
more than once. This function must throw an error if the callback
argument is not a function.
Register a callback for error handling.
Usage:
Implementation Requirements:
This function must accept a reference to an existing JavaScript function. The JavaScript function reference must be added to a list of callbacks, making it possible to register more than one callback by invokingfaces.ajax.addOnErrormore than once. This function must throw an error if thecallbackargument is not a function.