From c92f77ac03a1bbe3009891ce1d1f57f2d1091572 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期二, 24 八月 2021 15:00:25 +0800 Subject: [PATCH] 提交预约登记小程序相关代码 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/exceptions/ServiceException.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 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..fd8f7d5 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 @@ -10,6 +10,7 @@ private String code; private String msg; + private String data; public ServiceException() { super(); } @@ -27,6 +28,13 @@ 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; -- Gitblit v1.7.1