public class Exceptions extends Object
限定符和类型 | 方法和说明 |
---|---|
static String |
getStackTraceAsString(Throwable exception)
将ErrorStack转化为String.
|
static boolean |
isCausedBy(Exception ex,
Class<? extends Exception>... causeExceptionClasses)
判断异常是否由某些底层的异常引起.
|
static RuntimeException |
unchecked(Exception e)
将CheckedException转换为UnCheckedException.
|
public static RuntimeException unchecked(Exception e)
public static String getStackTraceAsString(Throwable exception)
Copyright © 2014 EPIC Team. All rights reserved.