admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/exception/BaseException.java
@@ -1,32 +1,32 @@
package com.yeshi.fanli.exception;
public class BaseException extends Exception {
   private static final long serialVersionUID = 1L;
   private int code;
   private String msg;
   public int getCode() {
      return code;
   }
   public String getMsg() {
      return msg;
   }
   public BaseException(int code, String msg) {
      this.code = code;
      this.msg = msg;
   }
   public BaseException(String msg) {
      this.msg = msg;
   }
   public BaseException() {
   }
   @Override
   public String getMessage() {
      return this.msg;
   }
}
package com.yeshi.fanli.exception;
public class BaseException extends Exception {
   private static final long serialVersionUID = 1L;
   private int code;
   private String msg;
   public int getCode() {
      return code;
   }
   public String getMsg() {
      return msg;
   }
   public BaseException(int code, String msg) {
      this.code = code;
      this.msg = msg;
   }
   public BaseException(String msg) {
      this.msg = msg;
   }
   public BaseException() {
   }
   @Override
   public String getMessage() {
      return this.msg;
   }
}