org.apache.maven.doxia.util
public abstract class WrappedException extends Exception
Constructor Summary | |
---|---|
WrappedException()
Constructs an exception with no original exception and no detail
message. | |
WrappedException(String message)
Constructs an exception with a detail message but no original
exception.
| |
WrappedException(Exception e)
Constucts an exception with an original exception but no detail
message.
| |
WrappedException(Exception e, String message)
Constucts an exception with both an original exception and an detail
message.
|
Method Summary | |
---|---|
Exception | getRootException()
Returns the original exception.
|
Parameters: message the detail message
Parameters: e the original exception
Parameters: e the original exception message the detail message; if null, the detail message of the original exception if any is used instead (it is this message which is returned by {@link java.lang.Throwable#getMessage})
Returns: the original exception if any or null
otherwise