We don't wrap them initially, so "e" can be a java exception; catch(x if x instanceof java.io.FileNotFoundException) should work.
On Dec 30, 2013, at 7:24 AM, Tal Liron <[email protected]> wrote: > 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) { > }
