Package io.netty.util.internal
Class ThrowableUtil
- java.lang.Object
-
- io.netty.util.internal.ThrowableUtil
-
public final class ThrowableUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidaddSuppressed(Throwable target, Throwable suppressed)static voidaddSuppressed(Throwable target, List<Throwable> suppressed)static voidaddSuppressedAndClear(Throwable target, List<Throwable> suppressed)static Throwable[]getSuppressed(Throwable source)static booleanhaveSuppressed()Deprecated.static StringstackTraceToString(Throwable cause)Gets the stack trace from a Throwable as a String.static <T extends Throwable>
TunknownStackTrace(T cause, Class<?> clazz, String method)
-
-
-
Method Detail
-
unknownStackTrace
public static <T extends Throwable> T unknownStackTrace(T cause, Class<?> clazz, String method)
-
stackTraceToString
public static String stackTraceToString(Throwable cause)
Gets the stack trace from a Throwable as a String.- Parameters:
cause- theThrowableto be examined- Returns:
- the stack trace as generated by
Throwable.printStackTrace(java.io.PrintWriter)method.
-
haveSuppressed
@Deprecated public static boolean haveSuppressed()
Deprecated.
-
addSuppressedAndClear
public static void addSuppressedAndClear(Throwable target, List<Throwable> suppressed)
-
-