I have several JavaScript that I, of course, invoke from Java with the
help of Rhino engine. Some lines in the JS code instantiates Java
objects and call its methods. When Java code throws an exception, I
catch it at the JS code, and I could get the complete function stack
including .java and .js --this works fine.

However, I have to write JS code that throws exception under certain
condition, and I want to get the full stack trace at the JS's catch
block. However, the only way I know to throw an exception from
JavaScript is using Error class which does not seem to have anyway of
dumping the full call stack.

Does any one know a way do this?

Much appreciated.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to