public abstract class ExceptionUtils extends Object
| Constructor and Description |
|---|
ExceptionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Throwable |
getCause(Class<? extends Throwable> target,
Throwable throwable)
Get the first cause of a given(target) class.
|
static void |
print(Throwable e,
PrintStream out,
boolean stack) |
static Throwable |
unpack(Class<? extends Throwable> parentClass,
Throwable throwable) |
static Throwable |
unpackBottom(Class<? extends Throwable> end,
Throwable throwable)
Unpack an exception, returning the child exception of the first exception assignable from end
|
static Throwable |
unpackFrom(Class<? extends Throwable> from,
Throwable throwable)
Unpack an exception from a given throwable.
|
public static void print(Throwable e, PrintStream out, boolean stack)
public static Throwable unpackBottom(Class<? extends Throwable> end, Throwable throwable)
end - throwable - public static Throwable unpackFrom(Class<? extends Throwable> from, Throwable throwable)
from - - Stopping conditionthrowable - - The throwableCopyright © 2018. All rights reserved.