Package io.netty.util.internal
Class ThrowableUtil
java.lang.Object
io.netty.util.internal.ThrowableUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 booleanstatic StringstackTraceToString(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- theThrowableto be examined- Returns:
- the stack trace as generated by
Throwable.printStackTrace(java.io.PrintWriter)method.
-
haveSuppressed
public static boolean haveSuppressed() -
addSuppressed
-
addSuppressedAndClear
-
addSuppressed
-
getSuppressed
-