public final class Throwables
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
Throwables() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Throwable |
getRootCause(java.lang.Throwable throwable)
Returns the deepest cause of the given
throwable. |
static void |
rethrow(java.lang.Throwable t)
Rethrows a
Throwable. |
private static <T extends java.lang.Throwable> |
rethrow0(java.lang.Throwable t) |
static java.util.List<java.lang.String> |
toStringList(java.lang.Throwable throwable)
Converts a Throwable stack trace into a List of Strings.
|
public static java.lang.Throwable getRootCause(java.lang.Throwable throwable)
throwable.throwable - the throwable to navigatepublic static java.util.List<java.lang.String> toStringList(java.lang.Throwable throwable)
throwable - the Throwablepublic static void rethrow(java.lang.Throwable t)
Throwable.t - the Throwable to throw.private static <T extends java.lang.Throwable> void rethrow0(java.lang.Throwable t)
throws T extends java.lang.Throwable
T extends java.lang.Throwable