feat:增加controller层的异常处理

This commit is contained in:
2025-01-15 17:17:27 +08:00
parent b0bd972e66
commit 7b0a2a98cd
5 changed files with 302 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package com.dpkj.common.exception;
/**
* 错误枚举接口,所有的错误枚举都需要实现该接口,如果需要自定义
* 错误信息可通过实现该接口与RespBean进行使用
*
* @author <a href="https://gitee.com/shi-chongli">石头人</a>
* @see com.dpkj.common.vo.Result
* @since 2023-07-27 13:05:00
*/
public interface ErrorInterface {
/**
* 获取响应码
*/
int getCode();
/**
* 获取响应信息
*/
String getMessage();
}