How to read the error message in onFailure action event of a browser widget

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

i am trying to access a webpage in the browser widget which is not loading. i would like to know how to read the error message

Hi,

We can use onFailure event callback , which gets invoked by the platform when the given URL fails to load

http://docs.kony.com/konylibrary/visualizer/viz_widget_prog_guide/Content/Browser_Events.htm

function onFailureCallback(eventObj, error) {

if (error.errorCode !== 1011) {

alert("Unable to display report. Please check your internet connection and try again later.");

}

}