| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException gnu.mapping.WrappedException
All known Subclasses: gnu.mapping.WrongType,
WrappedException | public class WrappedException extends RuntimeException (Code) | | Encapsulate some Exception inside a RuntimeException.
Inspired by org.xml.sax.SAXException written by David Megginson.
|
WrappedException | public WrappedException(String message)(Code) | | Create a new WrappedException.
Parameters: message - The error or warning message. |
WrappedException | public WrappedException(Throwable e)(Code) | | Create a new WrappedException wrapping an existing exception.
The existing exception will be embedded in the new
one, and its message will become the default message for
the WrappedException.
Parameters: e - The exception to be wrapped in a WrappedException. |
WrappedException | public WrappedException(String message, Throwable e)(Code) | | Create a new WrappedException from an existing exception.
The existing exception will be embedded in the new
one, but the new exception will have its own message.
Parameters: message - The detail message. Parameters: e - The exception to be wrapped in a WrappedException. |
getException | public Throwable getException()(Code) | | Return the embedded exception, if any.
The embedded exception, or null if there is none. |
getMessage | public String getMessage()(Code) | | Return a detail message for this exception.
If there is a embedded exception, and if the WrappedException
has no detail message of its own, this method will return
the detail message from the embedded exception.
The error or warning message. |
toString | public String toString()(Code) | | Convert this exception to a string.
A string version of this exception. |
|
|