Package io.netty.util.internal
Class ThrowableUtil
java.lang.Object
io.netty.util.internal.ThrowableUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addSuppressed
(Throwable target, Throwable suppressed) static void
addSuppressed
(Throwable target, List<Throwable> suppressed) static void
addSuppressedAndClear
(Throwable target, List<Throwable> suppressed) static Throwable[]
getSuppressed
(Throwable source) static boolean
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)
-
Constructor Details
-
ThrowableUtil
private ThrowableUtil()
-
-
Method Details
-
unknownStackTrace
-
stackTraceToString
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.
-
haveSuppressed
public static boolean haveSuppressed() -
addSuppressed
-
addSuppressedAndClear
-
addSuppressed
-
getSuppressed
-