fix: 修复ServiceException类中异常消息拼接问题 (master)
修改ServiceException类中默认异常消息的设置方式,使用 ResultCode.ERROR.message()代替DEFAULT_MESSAGE。
This commit is contained in:
@@ -15,12 +15,11 @@ public class ServiceException extends RuntimeException {
|
|||||||
|
|
||||||
private static final long serialVersionUID = 3447728300174142127L;
|
private static final long serialVersionUID = 3447728300174142127L;
|
||||||
|
|
||||||
public static final String DEFAULT_MESSAGE = "网络错误,请稍后重试!";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 异常消息
|
* 异常消息
|
||||||
*/
|
*/
|
||||||
private String msg = DEFAULT_MESSAGE;
|
private String msg = ResultCode.ERROR.message();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 错误码
|
* 错误码
|
||||||
|
|||||||
Reference in New Issue
Block a user