org.mozilla.javascript
Class WrappedException
public class WrappedException
A wrapper for runtime exceptions.
Used by the JavaScript runtime to wrap and propagate exceptions that occur
during runtime.
- Norris Boyd
WrappedException(Throwable exception) - Create a new exception wrapped around an existing exception.
|
WrappedException
public WrappedException(Throwable exception)
Create a new exception wrapped around an existing exception.
exception
- the exception to wrap
getLocalizedMessage
public String getLocalizedMessage()
Gets the localized message.
Delegates to the wrapped exception.
getMessage
public String getMessage()
Get the message for the exception.
Delegates to the wrapped exception.
getWrappedException
public Throwable getWrappedException()
Get the wrapped exception.
- the exception that was presented as a argument to the
constructor when this object was created