|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.test4j.tools.commons.ExceptionWrapper
public class ExceptionWrapper
异常包装器
| 构造方法摘要 | |
|---|---|
ExceptionWrapper()
|
|
| 方法摘要 | |
|---|---|
static RuntimeException |
getUndeclaredThrowableExceptionCaused(Throwable e)
返回反射代理的本源异常 |
static void |
throwRuntimeException(String error,
Throwable throwable)
把Throwable包装为运行时异常抛出 若throwable==null,则什么事都不干 |
static void |
throwRuntimeException(Throwable throwable)
把Throwable包装为运行时异常抛出 若throwable==null,则什么事都不干 |
static String |
toString(Throwable e)
|
static RuntimeException |
wrapdAdvisedException(Object object,
Exception e)
包装advised的异常信息,使提示更明显 |
static RuntimeException |
wrapWithRuntimeException(Throwable e)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ExceptionWrapper()
| 方法详细信息 |
|---|
public static void throwRuntimeException(Throwable throwable)
throwable -
public static void throwRuntimeException(String error,
Throwable throwable)
error - 附加的异常消息,使异常信息更明确throwable -
public static RuntimeException wrapdAdvisedException(Object object,
Exception e)
advised - e - public static RuntimeException getUndeclaredThrowableExceptionCaused(Throwable e)
e -
public static RuntimeException wrapWithRuntimeException(Throwable e)
public static String toString(Throwable e)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||