E - the element typepublic class ExceptionWrapper<E extends java.lang.RuntimeException>
extends java.lang.Object
ExceptionWrapper
.| 构造器和说明 |
|---|
ExceptionWrapper(java.lang.Class<E> exception)
Instantiates a new exception wrapper.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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