public class ThrowableUtil extends Object
| Constructor and Description |
|---|
ThrowableUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(Throwable t,
Class<? extends Throwable> e)
异常链中,是否保护制定异常。
|
static Throwable |
root(Throwable t)
获得最底层异常,触发异常。
|
static @NotNull String |
rootString(Throwable t)
把异常root堆栈,打成String
|
static @NotNull String |
toString(Throwable t)
把异常堆栈,打成String
|
@NotNull public static @NotNull String toString(Throwable t)
t - 异常@NotNull public static @NotNull String rootString(Throwable t)
t - 异常public static Throwable root(Throwable t)
t - 具体异常Copyright © 2020. All rights reserved.