From 241408b071cb1b43d9307ae9c75c82bb77b6faa7 Mon Sep 17 00:00:00 2001
From: zhaozhengjie <237651143@qq.com>
Date: 星期二, 20 九月 2022 17:10:27 +0800
Subject: [PATCH] Merge branch 'haucheng_panzhihua' into huacheng_test

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/exceptions/ServiceException.java |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 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 7285a2d..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,15 +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);
@@ -27,12 +27,18 @@
         this.msg = errorMsg;
     }
 
+    public ServiceException(String errorCode, String errorMsg, String data) {
+        super(errorCode);
+        this.code = errorCode;
+        this.msg = errorMsg;
+        this.data = data;
+    }
+
     public ServiceException(String errorCode, String errorMsg, Throwable cause) {
         super(errorCode, cause);
         this.code = errorCode;
         this.msg = errorMsg;
     }
-
 
     public String getErrorCode() {
         return code;

--
Gitblit v1.7.1