public class WrappedException
extends java.lang.RuntimeException
Constructor and Description |
---|
WrappedException(java.lang.Exception exception)
Creates an instance that wraps the exception.
|
WrappedException(java.lang.String message,
java.lang.Exception exception)
Creates an instance with it's own message that wraps the exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
exception()
Returns the wrapped exception.
|
public WrappedException(java.lang.Exception exception)
public WrappedException(java.lang.String message, java.lang.Exception exception)
message
- the message.exception
- the exception to wrap.