It would be very useful to retrieve the ScriptObjectMirror, Java Exception or any other throwable type. There is no way to retrieve this informationt without using internal API. ECMAException ecma = (ECMAException) nex; if (ecma.getThrown() instanceof ScriptObject) { ScriptObject so = (ScriptObject) ecma.getThrown(); for (String m : so.getOwnKeys(false)) { // XXX } }
|