From bbda2ee1af4e86d76f93e00386d77efb56c60d5f Mon Sep 17 00:00:00 2001 From: puhanshu <a9236326> Date: 星期六, 23 七月 2022 15:42:06 +0800 Subject: [PATCH] bug修改 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/exceptions/ServiceException.java | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/exceptions/ServiceException.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/exceptions/ServiceException.java index fd8f7d5..e61650f 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/exceptions/ServiceException.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/exceptions/ServiceException.java @@ -6,16 +6,15 @@ * @author: huang.hongfa weixin hhf9596 qq 959656820 * @create: 2020-12-28 14:13 **/ -public class ServiceException extends RuntimeException{ +public class ServiceException extends RuntimeException { private String code; private String msg; private String data; + public ServiceException() { super(); } - - public ServiceException(String errorMsg) { super(errorMsg); @@ -28,7 +27,7 @@ this.msg = errorMsg; } - public ServiceException(String errorCode, String errorMsg,String data) { + public ServiceException(String errorCode, String errorMsg, String data) { super(errorCode); this.code = errorCode; this.msg = errorMsg; @@ -40,7 +39,6 @@ this.code = errorCode; this.msg = errorMsg; } - public String getErrorCode() { return code; -- Gitblit v1.7.1