public class ExceptionUtils extends Object
| 构造器和说明 |
|---|
ExceptionUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getStackTraceAsString(Throwable e)
将ErrorStack转化为String.
|
static Throwable |
getThrowable(javax.servlet.http.HttpServletRequest request)
在request中获取异常类
|
static boolean |
isCausedBy(Exception ex,
Class<? extends Exception>... causeExceptionClasses)
判断异常是否由某些底层的异常引起.
|
static RuntimeException |
unchecked(Exception e)
将CheckedException转换为UncheckedException.
|
public static RuntimeException unchecked(Exception e)
@SafeVarargs public static boolean isCausedBy(Exception ex, Class<? extends Exception>... causeExceptionClasses)
public static Throwable getThrowable(javax.servlet.http.HttpServletRequest request)
request - Copyright © 2022. All rights reserved.