- 异常工具-ExceptionUtil
- 介绍
- 方法
异常工具-ExceptionUtil
介绍
针对异常封装,例如包装为RuntimeException。
方法
getMessage获得完整消息,包括异常名wrap包装一个异常为指定类型异常wrapRuntime使用运行时异常包装编译异常getCausedBy获取由指定异常类引起的异常isCausedBy判断是否由指定异常类引起stacktraceToString堆栈转为完整字符串其它方法见API文档:
https://apidoc.gitee.com/loolly/hutool/cn/hutool/core/exceptions/ExceptionUtil.html
