/** * @deprecated Use {@link #getWrappedException()} instead. */ public Object unwrap() { return getWrappedException(); }
throw (RhinoException)e; throw new WrappedException(e);
/** * @see Context#throwAsScriptRuntimeEx(Throwable e) */ public WrappedException(Throwable exception) { super("Wrapped "+exception.toString()); this.exception = exception; Kit.initCause(this, exception); int[] linep = { 0 }; String sourceName = Context.getSourcePositionFromStack(linep); int lineNumber = linep[0]; if (sourceName != null) { initSourceName(sourceName); } if (lineNumber != 0) { initLineNumber(lineNumber); } }
WrappedException we = (WrappedException)t; re = we; javaException = we.getWrappedException(); errorName = "JavaException"; errorMsg = javaException.getClass().getName() re = new WrappedException(t); errorName = "JavaException"; errorMsg = t.toString();
System.err.println(we.getWrappedException().toString()); we.printStackTrace(); } catch (EvaluatorException ee) { System.err.println(we.getWrappedException().toString()); we.printStackTrace(); } catch (EvaluatorException ee) { System.err.println("js: " + ee.getMessage());
} catch (WrappedException e) { __logger.warn("Error during JS execution.", e); if (e.getWrappedException() instanceof FaultException) { throw (FaultException)e.getWrappedException(); throw new FaultException(new QName("ExtensionEvaluationFault", JSExtensionBundle.NS), e.getMessage()); } catch (FaultException e) { __logger.warn("Fault during JS execution.", e);
public void reportException(RhinoException ex) { if (ex instanceof WrappedException) { WrappedException we = (WrappedException)ex; we.printStackTrace(err); } else { String lineSeparator = SecurityUtilities.getSystemProperty("line.separator"); String msg = getExceptionMessage(ex) + lineSeparator + ex.getScriptStackTrace(); reportErrorMessage(msg, ex.sourceName(), ex.lineNumber(), ex.lineSource(), ex.columnNumber(), false); } }
WrappedException we = (WrappedException)t; re = we; javaException = we.getWrappedException(); errorName = "JavaException"; errorMsg = javaException.getClass().getName() re = new WrappedException(t); errorName = "JavaException"; errorMsg = t.toString();
public void reportException(RhinoException ex) { if (ex instanceof WrappedException) { WrappedException we = (WrappedException)ex; we.printStackTrace(err); } else { String lineSeparator = SecurityUtilities.getSystemProperty("line.separator"); String msg = getExceptionMessage(ex) + lineSeparator + ex.getScriptStackTrace(); reportErrorMessage(msg, ex.sourceName(), ex.lineNumber(), ex.lineSource(), ex.columnNumber(), false); } }
/** * @deprecated Use {@link #getWrappedException()} instead. */ public Object unwrap() { return getWrappedException(); }
WrappedException we = (WrappedException)t; re = we; javaException = we.getWrappedException(); errorName = "JavaException"; errorMsg = javaException.getClass().getName() re = new WrappedException(t); errorName = "JavaException"; errorMsg = t.toString();
public Object run(Context cx) { try { return cx.evaluateReader(globalObject, scriptReader, description, 1, rhinoClassLoader); } catch (IOException ioe) { throw new WrappedException(ioe); } } };
/** * @see Context#throwAsScriptRuntimeEx(Throwable e) */ public WrappedException(Throwable exception) { super("Wrapped "+exception.toString()); this.exception = exception; Kit.initCause(this, exception); int[] linep = { 0 }; String sourceName = Context.getSourcePositionFromStack(linep); int lineNumber = linep[0]; if (sourceName != null) { initSourceName(sourceName); } if (lineNumber != 0) { initLineNumber(lineNumber); } }
/** * @deprecated Use {@link #getWrappedException()} instead. */ public Object unwrap() { return getWrappedException(); }
WrappedException we = (WrappedException)t; re = we; javaException = we.getWrappedException(); errorName = "JavaException"; errorMsg = javaException.getClass().getName() re = new WrappedException(t); errorName = "JavaException"; errorMsg = t.toString();
public Object run(Context cx) { try { return cx.evaluateReader(globalObject, scriptReader, description, 1, rhinoClassLoader); } catch (IOException ioe) { throw new WrappedException(ioe); } } };
/** * @see Context#throwAsScriptRuntimeEx(Throwable e) */ public WrappedException(Throwable exception) { super("Wrapped "+exception.toString()); this.exception = exception; Kit.initCause(this, exception); int[] linep = { 0 }; String sourceName = Context.getSourcePositionFromStack(linep); int lineNumber = linep[0]; if (sourceName != null) { initSourceName(sourceName); } if (lineNumber != 0) { initLineNumber(lineNumber); } }
/** * @deprecated Use {@link #getWrappedException()} instead. */ public Object unwrap() { return getWrappedException(); }
WrappedException we = (WrappedException)t; re = we; javaException = we.getWrappedException(); errorName = "JavaException"; errorMsg = javaException.getClass().getName() re = new WrappedException(t); errorName = "JavaException"; errorMsg = t.toString();
public Object run(Context cx) { try { return cx.evaluateReader(globalObject, scriptReader, description, 1, rhinoClassLoader); } catch (IOException ioe) { throw new WrappedException(ioe); } } };