public class Exceptions extends Object
| Constructor and Description |
|---|
Exceptions() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getStackTraceAsString(Throwable ex)
将ErrorStack转化为String.
|
static RuntimeException |
unchecked(Throwable e)
将CheckedException转换为UncheckedException.
|
static Throwable |
unwrap(Throwable wrapped)
代理异常解包
|
public static String getStackTraceAsString(Throwable ex)
ex - Throwablepublic static RuntimeException unchecked(Throwable e)
e - ThrowableCopyright © 2015–2022 cn.gtmap. All rights reserved.