I have a class implementing Scriptable. The "get" method needs to do
some disk work which may throw a checked exception. Scriptable's "get"
cannot throw a checked exception. What is the recommended way to pass
that exception through to the JavaScript? Right now I'm catching the
checked exception and then throwing a RuntimeException (which is not
checked). Is that considered a reasonable approach?

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

Reply via email to