setOnError method
qlik.setOnError(callback)
Method used to register a callback for error handling. If you do not call this method, Qlik Sense standard error handling will be used.
Parameters
| Name | Type | Description |
|---|---|---|
| callback | function | Error handling function |
Example
qlik.setOnError(function(error) {
//contains code, message
alert(error.message);
});
Tip noteSee Loading external and internal modules for more example of use.