Previous Topic: How You Pass Data to and from ScriptsNext Topic: Scripted Opbindings Debugging


Exception Handling In Scripts

The CA IAM CS framework intercepts any JavaScript exceptions which are thrown that include line numbers, and helps ensure that the line number relative to the start of the opbindings document. That is, the value of the namespace.eTOpBindingsMetaData attribute are also included in the exception text.

A useful technique when encountering errors in a JavaScript script is to put an exception breakpoint on the org.mozilla.javascript.JavaScriptException base class used by Rhino. Walking up the stack of such an exception often provides some context about where and why the script is failing.