Class GlobalExceptionMsgManager.DirectMessageExceptionHandler
java.lang.Object
cn.creekmoon.excel.util.exception.GlobalExceptionMsgManager.DirectMessageExceptionHandler
- All Implemented Interfaces:
ExcelUtilsExceptionHandler,org.springframework.core.Ordered
- Enclosing class:
GlobalExceptionMsgManager
public static class GlobalExceptionMsgManager.DirectMessageExceptionHandler
extends Object
implements ExcelUtilsExceptionHandler
直达消息处理器(将异常信息透传)
如果是业务异常, 可以直接展示的就使用这个处理器
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionDirectMessageExceptionHandler(Class customExceptionClass) DirectMessageExceptionHandler(String customExceptionClassName) -
Method Summary
Modifier and TypeMethodDescriptioncustomExceptionMessage(Exception unCatchException) 自定义异常结果intgetOrder()顺序 越低越先执行
-
Constructor Details
-
DirectMessageExceptionHandler
-
DirectMessageExceptionHandler
-
-
Method Details
-
customExceptionMessage
Description copied from interface:ExcelUtilsExceptionHandler自定义异常结果- Specified by:
customExceptionMessagein interfaceExcelUtilsExceptionHandler- Parameters:
unCatchException- 未捕获的异常- Returns:
- 返回错误信息
-
getOrder
public int getOrder()Description copied from interface:ExcelUtilsExceptionHandler顺序 越低越先执行- Specified by:
getOrderin interfaceExcelUtilsExceptionHandler- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Returns:
-