public class ExceptionUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ExceptionUtils.CustomStackTrace
Interface allowing
Throwable specializations to provide their custom stack trace presentation. |
Constructor and Description |
---|
ExceptionUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
dumpCause(PrintStream s,
String causeStr,
Throwable cause,
int causeDepth) |
static void |
dumpStack(PrintStream out) |
static void |
dumpStack(PrintStream out,
int skip,
int depth) |
static void |
dumpStack(PrintStream out,
StackTraceElement[] stack,
int skip,
int depth) |
static void |
dumpStack(PrintStream out,
Throwable t,
int skip,
int depth) |
static void |
dumpThrowable(String additionalDescr,
Throwable t)
Dumps a
Throwable in a decorating message including the current thread name,
and its stack trace . |
static void |
printStackTrace(PrintStream s,
Throwable t) |
public static void dumpStack(PrintStream out)
public static void dumpStack(PrintStream out, int skip, int depth)
public static void dumpStack(PrintStream out, Throwable t, int skip, int depth)
public static void dumpStack(PrintStream out, StackTraceElement[] stack, int skip, int depth)
public static int dumpCause(PrintStream s, String causeStr, Throwable cause, int causeDepth)
public static void printStackTrace(PrintStream s, Throwable t)
public static void dumpThrowable(String additionalDescr, Throwable t)
Throwable
in a decorating message including the current thread name,
and its stack trace
.
Implementation will iterate through all causes
.