E - the element typepublic class ExceptionWrapper<E extends java.lang.RuntimeException>
extends java.lang.Object
ExceptionWrapper
.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<E> |
exception
exception type.
|
| Constructor and Description |
|---|
ExceptionWrapper(java.lang.Class<E> exception)
Instantiates a new exception wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
throwException(java.lang.String msg,
java.lang.Throwable throwable)
throw exception with throwable and msg.
|
void |
throwException(java.lang.Throwable throwable)
throw exception with throwable.
|
protected java.lang.Class<E extends java.lang.RuntimeException> exception
public ExceptionWrapper(java.lang.Class<E> exception)
exception - the exceptionpublic void throwException(java.lang.Throwable throwable)
throwable - the throwablepublic void throwException(java.lang.String msg,
java.lang.Throwable throwable)
msg - the msgthrowable - the throwable