public final class ThrowableUtil
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
ThrowableUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
stackTraceToString(java.lang.Throwable cause)
Gets the stack trace from a Throwable as a String.
|
static <T extends java.lang.Throwable> |
unknownStackTrace(T cause,
java.lang.Class<?> clazz,
java.lang.String method)
Set the
StackTraceElement for the given Throwable, using the Class and method name. |
public static <T extends java.lang.Throwable> T unknownStackTrace(T cause,
java.lang.Class<?> clazz,
java.lang.String method)
StackTraceElement for the given Throwable, using the Class and method name.public static java.lang.String stackTraceToString(java.lang.Throwable cause)
cause - the Throwable to be examinedThrowable.printStackTrace(java.io.PrintWriter) method.