throw (RhinoException)e; throw new WrappedException(e);
return AccessController.doPrivileged(execAction, acc); } catch (Exception e) { throw new WrappedException(e);
public Object run(Context cx) { try { return cx.evaluateReader(globalObject, scriptReader, description, 1, rhinoClassLoader); } catch (IOException ioe) { throw new WrappedException(ioe); } } };
public Object run(Context cx) { try { return cx.evaluateReader(globalObject, scriptReader, description, 1, rhinoClassLoader); } catch (IOException ioe) { throw new WrappedException(ioe); } } };
return AccessController.doPrivileged(execAction, acc); } catch (Exception e) { throw new WrappedException(e);
public Object run(Context cx) { try { return cx.evaluateReader(globalObject, scriptReader, description, 1, rhinoClassLoader); } catch (IOException ioe) { throw new WrappedException(ioe); } } };
@Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if ( args.length != 1) { throw new RuntimeException("Only statSync 1 parameter supported"); } final File file = new File(Context.toString(args[0])); if ( !new File(Context.toString(args[0])).exists() ) { throw new WrappedException(new RuntimeException(String.format("Error: file [%s] does not exist", args[0]))); } return Context.javaToJS(new Stats(file), scope); } }
throw (RhinoException)e; throw new WrappedException(e);
throw (RhinoException)e; throw new WrappedException(e);
throw (RhinoException)e; throw new WrappedException(e);
throw (RhinoException)e; throw new WrappedException(e);
throw (RhinoException)e; throw new WrappedException(e);
public void put(int index, Scriptable start, Object value) { // FIXME(SW): do indexed properties have a meaning on the global scope? if (this.locked && !has(index, start)) { throw new WrappedException(new JavaScriptException("Global scope locked. Cannot set value for index " + index)); } this.useSession = true; super.put(index, start, value); }
public void put(String name, Scriptable start, Object value) { //Allow setting values to existing variables, or if this is a //java class (used by importClass & importPackage) if (this.locked && !has(name, start) && !(value instanceof NativeJavaClass) && !(value instanceof Function)) { // Need to wrap into a runtime exception as Scriptable.put has no throws clause... throw new WrappedException (new JavaScriptException("Implicit declaration of global variable '" + name + "' forbidden. Please ensure all variables are explicitely declared with the 'var' keyword")); } this.useSession = true; super.put(name, start, value); }
re = new WrappedException(t); errorName = "JavaException"; errorMsg = t.toString();
re = new WrappedException(t); errorName = "JavaException"; errorMsg = t.toString();
re = new WrappedException(t); errorName = "JavaException"; errorMsg = t.toString();
re = new WrappedException(t); errorName = "JavaException"; errorMsg = t.toString();
re = new WrappedException(t); type = TopLevel.NativeErrors.JavaException; errorMsg = t.toString();
re = new WrappedException(t); errorName = "JavaException"; errorMsg = t.toString();