org.mozilla.javascript
Class WrappedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mozilla.javascript.RhinoException
org.mozilla.javascript.EvaluatorException
org.mozilla.javascript.WrappedException
- All Implemented Interfaces:
- Serializable
public class WrappedException
- extends EvaluatorException
A wrapper for runtime exceptions.
Used by the JavaScript runtime to wrap and propagate exceptions that occur
during runtime.
- Author:
- Norris Boyd
- See Also:
- Serialized Form
Methods inherited from class org.mozilla.javascript.RhinoException |
columnNumber, details, getMessage, getScriptStack, getScriptStackTrace, getScriptStackTrace, initColumnNumber, initLineNumber, initLineSource, initSourceName, lineNumber, lineSource, printStackTrace, printStackTrace, sourceName, useMozillaStackStyle, usesMozillaStackStyle |
WrappedException
public WrappedException(Throwable exception)
- See Also:
Context.throwAsScriptRuntimeEx(Throwable e)
getWrappedException
public Throwable getWrappedException()
- Get the wrapped exception.
- Returns:
- the exception that was presented as a argument to the
constructor when this object was created
unwrap
public Object unwrap()
- Deprecated. Use
getWrappedException()
instead.