Programmer's Guide > Using the AOM > Using JavaScript to Access the AOM > JavaScript Interface Error Handling
  
JavaScript Interface Error Handling
Errors When Executing JavaScript
When executing JavaScript programs, Arbortext Editor displays error messages if there are problems when starting the JavaScript interpreter, in the embedded Java Virtual Machine (JVM), or if the JavaScript interpreter reports an exception. If the JavaScript interpreter reports an exception, Arbortext Editor displays a message such as “The Java method name has thrown an exception.” If you use the ACL function javascript to invoke the JavaScript interpreter, name is eval; if you use the ACL function js_source, name is source.
The JavaScript exception message is sent to the Java Console if it is open; otherwise, it is discarded. When developing JavaScript applications, choose Tools > Java Console to open the Java Console and view exception messages.
For JavaScript code executed by reading a .js file, the JavaScript exception report includes a traceback showing the file name and line number of each function active at the time of the error. The traceback also lists Java methods for the JavaScript interpreter, which can be ignored.