fix: 修复ServiceException类中异常消息拼接问题 (master)

修改ServiceException类中默认异常消息的设置方式,使用
ResultCode.ERROR.message()代替DEFAULT_MESSAGE。
This commit is contained in:
Chopper711
2025-02-21 11:11:05 +08:00
parent 98f25179d3
commit efdf505e63

View File

@@ -15,12 +15,11 @@ public class ServiceException extends RuntimeException {
private static final long serialVersionUID = 3447728300174142127L;
public static final String DEFAULT_MESSAGE = "网络错误,请稍后重试!";
/**
* 异常消息
*/
private String msg = DEFAULT_MESSAGE;
private String msg = ResultCode.ERROR.message();
/**
* 错误码