程序包 cool.scx.util
类 ScxExceptionHelper
java.lang.Object
cool.scx.util.ScxExceptionHelper
a
- 版本:
- 0.0.1
- 作者:
- scx567888
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ThrowablegetRootCause(Throwable throwable) 解包包装后的异常static StringgetStackTraceString(Throwable throwable) 获取 jdk 内部默认实现的堆栈跟踪字符串static voidignore(ScxHandlerE<?> handler) 忽略异常static <T> Tignore(ScxHandlerRE<T, ?> handler) 忽略异常 发生异常时返回 nullstatic <T> Tignore(ScxHandlerRE<T, ?> handler, T defaultVal) 忽略异常 发生异常时返回默认值static booleannoException(ScxHandlerE<?> exceptionScxHandlerVE) 执行的操作是否有异常 (有异常时不打印信息)static voidwrap(ScxHandlerE<?> handler) 包装 异常static <T> Twrap(ScxHandlerRE<T, ?> handler) 包装 异常
-
构造器详细资料
-
ScxExceptionHelper
public ScxExceptionHelper()
-
-
方法详细资料
-
wrap
包装 异常- 类型参数:
T- a- 参数:
handler- a- 返回:
- a
-
wrap
包装 异常- 参数:
handler- a
-
ignore
忽略异常 发生异常时返回 null- 类型参数:
T- a- 参数:
handler- a- 返回:
- a
-
ignore
忽略异常 发生异常时返回默认值- 类型参数:
T- a- 参数:
handler- adefaultVal- a T object- 返回:
- a
-
ignore
忽略异常- 参数:
handler- a
-
noException
执行的操作是否有异常 (有异常时不打印信息)- 参数:
exceptionScxHandlerVE- a- 返回:
- a
-
getRootCause
解包包装后的异常- 参数:
throwable- a- 返回:
- a
-
getStackTraceString
获取 jdk 内部默认实现的堆栈跟踪字符串- 参数:
throwable- t- 返回:
- t
-