Defining How to Handle JavaScript Errors
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,
press Ctrl + Shift + J. In Firefox, press F12, then the Console
tab) to determine the exact location of the error.
x
Syntax: How to Specify How to Handle JavaScript Errors
catchErrors: boolean
where:
- catchErrors: 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.