public class ExceptionUtils extends Object
Provides utilities for manipulating and examining
Throwable objects.
| 构造器和说明 |
|---|
ExceptionUtils() |
public static RuntimeException toRuntime(Throwable proxy)
public static RuntimeException toRuntime(Throwable proxy, Function<Throwable,RuntimeException> convert)
RuntimeExceptionpublic static int getThrowableCount(Throwable throwable)
public static int indexOfThrowable(Throwable throwable, Class<?> clazz, int fromIndex)
public static void printRootCauseStackTrace(Throwable throwable)
public static void printRootCauseStackTrace(Throwable throwable, PrintStream stream)
public static void printRootCauseStackTrace(Throwable throwable, PrintWriter writer)
public static void removeCommonFrames(List<String> causeFrames, List<String> wrapperFrames)
Copyright © 2021–2022. All rights reserved.