Functions in Hype xAPI
...
HypeXAPI
HypeXAPI.setDefault

xhrRequestOnError

1min

This default consists of a function that is called when there is an error with an XHR request. It takes the XHR request, the method used, the URL, the callback, and the callback arguments as parameters. You can use this function to handle errors in your XHR requests. For example, you could use this function to log the error to the console:

JS




Updated 25 Mar 2024
Doc contributor
Did this page help you?