org.mozilla.javascript

Class WrappedException

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

Constructor Summary
WrappedException(Throwable exception)
Method Summary
ThrowablegetWrappedException()
Get the wrapped exception.
Objectunwrap()

Constructor Detail

WrappedException

public WrappedException(Throwable exception)

See Also: Context

Method Detail

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 {@link #getWrappedException()} instead.