public final class ExceptionUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Throwable[] |
getCauses(Throwable start)
Get the chain of exceptions via getCause().
|
static Throwable |
getRootCause(Throwable e)
Get the original troublemaker.
|
static String |
getStackTrace(Throwable t)
Get the stack trace as a String.
|
public static Throwable[] getCauses(Throwable start)
start - the Exception to traversepublic static Throwable getRootCause(Throwable e)
e - the Exception to dig intoCopyright © 2017–2020 Eclipse Foundation. All rights reserved.