Defining How to Handle JavaScript Errors

How to:

The catchErrors property defines how JavaScript errors are handled. Typical errors can include invalid property settings that do not allow the engine to parse the JavaScript. When catchErrors is false, you can use the Java Script console (for example, in Chrome Control+Shift+j. In FireFox, press F12, then the Console tab) to determine the exact location of the error.


Top of page

x
Syntax: How to Specify How to Handle JavaScript Errors
catchErrors: boolean

where:

boolean

Can be:

  • true, which displays errors as HTML text where the chart would otherwise be drawn. This is the default value. Subsequent JavaScript code in the calling application continues to run.
  • false, which passes errors to the calling application. If the calling application does not catch the error, all subsequent JavaScript execution terminates.

WebFOCUS