setOnError method

DEPRECATED.
This API is deprecated and may be removed in a future version.

qlik.setOnError(onError, onWarning)

Registers a callback for error handling. Standard Qlik Sense error handling is used if this method is not called.

Version history

Introduced 1.0
Updated 2.1
Deprecated

Qlik Sense February 2018

Use instead: app.on() or global.on()

Parameters

Name Type Description
onError function Error handling function
onWarning function

Optional.

Warning handling function.

Introduced in version 2.1.

Example

qlik.setOnError(function(error) {
	//contains code, message
	alert(error.message);
},
function(warning){
	windows.console.log(warning);
});
See Loading external and internal modules for more example of use.

Did this information help you?

Can you tell us why it did not help you and how we can improve it?

Thanks for helping us improve!