Clean JavaScript stack trace

Greg Brail greg at apigee.com
Fri Jun 20 16:05:22 UTC 2014


Is there a way in Nashorn or javax.script to get a clean JavaScript-only
stack trace (not a Java stack trace, but only containing JavaScript code)
out of an exception thrown by a script? I don't see anything in the Nashorn
Wiki or javax.script -- apologies if I'm missing something there.

For instance, I can get a full Java stack trace when my script fails, but
I'd like to ignore all the Java stuff and give users the stack trace that
they would get if they were running the "plain" JavaScript natively rather
than inside Java.

-- 
*greg brail* | *apigee <https://apigee.com/>* | twitter @gbrail
<http://twitter.com/gbrail>


More information about the nashorn-dev mailing list