public final class Throwables extends Object
Modifier and Type | Method and Description |
---|---|
static Throwable |
getRootCause(Throwable throwable)
Returns the deepest cause of the given
throwable . |
static void |
rethrow(Throwable t)
Rethrows a
Throwable . |
static List<String> |
toStringList(Throwable throwable)
Converts a Throwable stack trace into a List of Strings.
|
public static Throwable getRootCause(Throwable throwable)
throwable
.throwable
- the throwable to navigatepublic static List<String> toStringList(Throwable throwable)
throwable
- the ThrowableCopyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.