tsdoc
    Preparing search index...

    Function addOnError

    • Register a callback for error handling.

      Usage:

      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.

      Parameters

      • callback: Function

        a reference to a function to call on an error

      Returns void

      2.0