public class Exceptions extends Object
| Constructor and Description |
|---|
Exceptions() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getStackTraceAsString(Exception e)
将ErrorStack转化为String.
|
static boolean |
isCausedBy(Exception ex,
Class<? extends Exception>... causeExceptionClasses)
判断异常是否由某些底层的异常引起.
|
static RuntimeException |
unchecked(Exception e)
将CheckedException转换为UncheckedException.
|
public static RuntimeException unchecked(Exception e)
Copyright © 2020. All rights reserved.