public final class ThrowableUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
stackTraceToString(Throwable cause)
Gets the stack trace from a Throwable as a String.
|
static <T extends Throwable> |
unknownStackTrace(T cause,
Class<?> clazz,
String method)
|
public static <T extends Throwable> T unknownStackTrace(T cause, Class<?> clazz, String method)
public static String stackTraceToString(Throwable cause)
cause
- the Throwable
to be examinedThrowable.printStackTrace(java.io.PrintWriter)
method.Copyright © 2008–2018 The Netty Project. All rights reserved.