Browse Source

修复上一次移动类的附属类未移动问题

niantuo 6 years ago
parent
commit
3459de2de5

+ 0 - 12
cloud-bus/src/main/java/cn/gygxzc/envir/email/MailParamMissException.java

@@ -1,12 +0,0 @@
-package cn.gygxzc.envir.email;
-
-/**
- * @author tuonina
- * @createTime 2019/2/25
- */
-public class MailParamMissException extends RuntimeException {
-
-    public MailParamMissException(String message){
-        super(message);
-    }
-}

+ 4 - 3
zen-core/src/main/java/cn/gygxzc/envir/core/entity/MailEntity.java

@@ -1,5 +1,6 @@
 package cn.gygxzc.envir.core.entity;
 
+import cn.gygxzc.envir.core.ex.ParamMissException;
 import com.baomidou.mybatisplus.core.toolkit.IdWorker;
 import org.springframework.util.StringUtils;
 
@@ -156,13 +157,13 @@ public class MailEntity implements Serializable {
 
     public void checkParams() throws RuntimeException {
         if (!StringUtils.hasLength(to)) {
-            throw new MailParamMissException("无发送对象!");
+            throw new ParamMissException("无发送对象!");
         }
         if (!StringUtils.hasLength(subject)) {
-            throw new MailParamMissException("无邮件主题!");
+            throw new ParamMissException("无邮件主题!");
         }
         if (!StringUtils.hasLength(content)) {
-            throw new MailParamMissException("无邮件内容!");
+            throw new ParamMissException("无邮件内容!");
         }
     }
 

+ 12 - 0
zen-core/src/main/java/cn/gygxzc/envir/core/ex/ParamMissException.java

@@ -0,0 +1,12 @@
+package cn.gygxzc.envir.core.ex;
+
+/**
+ * @author tuonina
+ * @createTime 2019/2/25
+ */
+public class ParamMissException extends RuntimeException {
+
+    public ParamMissException(String message){
+        super(message);
+    }
+}