- java.lang.Object
-
- io.netty5.util.internal.ThrowableUtil
-
public final class ThrowableUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addSuppressed(Throwable target, Throwable suppressed)
static void
addSuppressed(Throwable target, List<Throwable> suppressed)
static void
addSuppressedAndClear(Throwable target, List<Throwable> suppressed)
static String
stackTraceToString(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
- theThrowable
to be examined- Returns:
- the stack trace as generated by
Throwable.printStackTrace(java.io.PrintWriter)
method.
-
addSuppressedAndClear
public static void addSuppressedAndClear(Throwable target, List<Throwable> suppressed)
-
-