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.
|
static boolean |
isDSFailure(Exception ex) |
public static Throwable[] getCauses(Throwable start)
start - the Exception to traversepublic static Throwable getRootCause(Throwable e)
e - the Exception to dig intopublic static String getStackTrace(Throwable t)
t - the Throwabe whose stack trace should be gottenpublic static boolean isDSFailure(Exception ex)
Copyright © 2017. All rights reserved.