/** * @deprecated Use {@link RhinoException#sourceName()} from the super class. */ public String getSourceName() { return sourceName(); }
/** * @deprecated Use {@link RhinoException#sourceName()} from the super class. */ public String getSourceName() { return sourceName(); }
/** * @deprecated Use {@link RhinoException#sourceName()} from the super class. */ public String getSourceName() { return sourceName(); }
/** * @deprecated Use {@link RhinoException#sourceName()} from the super class. */ public String getSourceName() { return sourceName(); }
/** * @deprecated Use {@link RhinoException#sourceName()} from the super class. */ public String getSourceName() { return sourceName(); }
/** * @deprecated Use {@link RhinoException#sourceName()} from the super class. */ @Deprecated public String getSourceName() { return sourceName(); }
public Location getLocation(Object obj, String description) { if (obj instanceof EcmaError) { EcmaError ex = (EcmaError)obj; if (ex.sourceName() != null) { return new LocationImpl(ex.getName(), ex.sourceName(), ex.lineNumber(), ex.columnNumber()); } else { return Location.UNKNOWN; } } else if (obj instanceof JavaScriptException) { JavaScriptException ex = (JavaScriptException)obj; if (ex.sourceName() != null) { return new LocationImpl(description, ex.sourceName(), ex.lineNumber(), -1); } else { return Location.UNKNOWN; } } return null; } };
public Object eval(ScriptContext context) throws ScriptException { Object result = null; Context cx = RhinoScriptEngine.enterContext(); try { Scriptable scope = engine.getRuntimeScope(context); Object ret = script.exec(cx, scope); result = engine.unwrapReturnValue(ret); } catch (JavaScriptException jse) { if (DEBUG) jse.printStackTrace(); int line = (line = jse.lineNumber()) == 0 ? -1 : line; Object value = jse.getValue(); String str = (value != null && value.getClass().getName().equals("org.mozilla.javascript.NativeError") ? value.toString() : jse.toString()); throw new ExtendedScriptException(jse, str, jse.sourceName(), line); } catch (RhinoException re) { if (DEBUG) re.printStackTrace(); int line = (line = re.lineNumber()) == 0 ? -1 : line; throw new ExtendedScriptException(re, re.toString(), re.sourceName(), line); } finally { Context.exit(); } return result; }
public Object eval(ScriptContext context) throws ScriptException { Object result = null; Context cx = RhinoScriptEngine.enterContext(); try { Scriptable scope = engine.getRuntimeScope(context); Object ret = script.exec(cx, scope); result = engine.unwrapReturnValue(ret); } catch (JavaScriptException jse) { if (DEBUG) jse.printStackTrace(); int line = (line = jse.lineNumber()) == 0 ? -1 : line; Object value = jse.getValue(); String str = (value != null && value.getClass().getName().equals("org.mozilla.javascript.NativeError") ? value.toString() : jse.toString()); throw new ExtendedScriptException(jse, str, jse.sourceName(), line); } catch (RhinoException re) { if (DEBUG) re.printStackTrace(); int line = (line = re.lineNumber()) == 0 ? -1 : line; throw new ExtendedScriptException(re, re.toString(), re.sourceName(), line); } finally { Context.exit(); } return result; }
@Override public Object eval(ScriptContext context) throws ScriptException { Object result = null; Context cx = RhinoScriptEngine.enterContext(); try { Scriptable scope = engine.getRuntimeScope(context); Object ret = script.exec(cx, scope); result = engine.unwrapReturnValue(ret); } catch (JavaScriptException jse) { if (DEBUG) jse.printStackTrace(); int line = (line = jse.lineNumber()) == 0 ? -1 : line; Object value = jse.getValue(); String str = (value != null && value.getClass().getName().equals("org.mozilla.javascript.NativeError") ? value.toString() : jse.toString()); throw new ExtendedScriptException(jse, str, jse.sourceName(), line); } catch (RhinoException re) { if (DEBUG) re.printStackTrace(); int line = (line = re.lineNumber()) == 0 ? -1 : line; throw new ExtendedScriptException(re, re.toString(), re.sourceName(), line); } finally { Context.exit(); } return result; }
value.toString() : jse.toString()); throw new ExtendedScriptException(jse, str, jse.sourceName(), line); } catch (RhinoException re) { if (DEBUG) re.printStackTrace();
value.toString() : jse.toString()); throw new ExtendedScriptException(jse, str, jse.sourceName(), line); } catch (RhinoException re) { if (DEBUG) re.printStackTrace();
value.toString() : jse.toString()); throw new ExtendedScriptException(jse, str, jse.sourceName(), line); } catch (RhinoException re) { if (DEBUG) re.printStackTrace();
value.toString() : jse.toString()); throw new ExtendedScriptException(jse, str, jse.sourceName(), line); } catch (RhinoException re) { if (DEBUG) re.printStackTrace();
value.toString() : jse.toString()); throw new ExtendedScriptException(jse, str, jse.sourceName(), line); } catch (RhinoException re) { if (DEBUG) re.printStackTrace();
value.toString() : jse.toString()); throw new ExtendedScriptException(jse, str, jse.sourceName(), line); } catch (RhinoException re) { if (DEBUG) re.printStackTrace();
t.sourceName(), t.lineNumber());