Catching JVM exceptions

Tal Liron tal.liron at threecrickets.com
Sun Dec 29 22:24:27 PST 2013


How do you catch JVM exceptions in Nashorn? This is how it works in Rhino:

             try {
                 ...
             }
             catch (x if x.javaException instanceof 
java.io.FileNotFoundException) {
             }


More information about the nashorn-dev mailing list