mirror of https://github.com/alibaba/easyexcel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
354 B
20 lines
354 B
9 months ago
|
package com.alibaba.easytools.spring.exception.convertor;
|
||
|
|
||
|
import com.alibaba.easytools.base.wrapper.result.ActionResult;
|
||
|
|
||
|
/**
|
||
|
* 异常转换器
|
||
|
*
|
||
|
* @author 是仪
|
||
|
*/
|
||
|
public interface ExceptionConvertor<T extends Throwable> {
|
||
|
|
||
|
/**
|
||
|
* 转换异常
|
||
|
*
|
||
|
* @param exception
|
||
|
* @return
|
||
|
*/
|
||
|
ActionResult convert(T exception);
|
||
|
}
|