public class ExceptionWrapper extends RuntimeException
| 构造器和说明 |
|---|
ExceptionWrapper(Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
checkThrowable(Throwable err)
检查捕获的对象是否需要抛出.
|
static String |
makeMessage(Throwable cause)
构造异常的消息.
|
static Throwable |
unwrapException(Throwable ex)
对一个异常进行解包.
|
static RuntimeException |
wrapException(Throwable ex)
将应该异常打包成运行时异常.
|
public ExceptionWrapper(Throwable cause)
public static String makeMessage(Throwable cause)
cause - 源public static RuntimeException wrapException(Throwable ex)
ex - errpublic static Throwable unwrapException(Throwable ex)
ex - errpublic static void checkThrowable(Throwable err)
err - exCopyright © 2022. All rights reserved.