public final class ThrowableUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addSuppressed(Throwable target,
List<Throwable> suppressed) |
static void |
addSuppressed(Throwable target,
Throwable suppressed) |
static void |
addSuppressedAndClear(Throwable target,
List<Throwable> suppressed) |
static Throwable[] |
getSuppressed(Throwable source) |
static boolean |
haveSuppressed() |
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.public static boolean haveSuppressed()
public static void addSuppressedAndClear(Throwable target, List<Throwable> suppressed)
Copyright © 2008–2024 The Netty Project. All rights reserved.