ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/GlobalException.java
@@ -1,5 +1,10 @@ package org.dromara.common.core.exception; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import java.io.Serial; /** @@ -7,6 +12,10 @@ * * @author ruoyi */ @Data @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @AllArgsConstructor public class GlobalException extends RuntimeException { @Serial @@ -21,12 +30,6 @@ * 错误明细,内部调试错误 */ private String detailMessage; /** * 空构造方法,避免反序列化问题 */ public GlobalException() { } public GlobalException(String message) { this.message = message; ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/ServiceException.java
@@ -1,5 +1,10 @@ package org.dromara.common.core.exception; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import java.io.Serial; /** @@ -7,6 +12,10 @@ * * @author ruoyi */ @Data @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @AllArgsConstructor public final class ServiceException extends RuntimeException { @Serial @@ -26,12 +35,6 @@ * 错误明细,内部调试错误 */ private String detailMessage; /** * 空构造方法,避免反序列化问题 */ public ServiceException() { } public ServiceException(String message) { this.message = message; ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/base/BaseException.java
@@ -1,5 +1,6 @@ package org.dromara.common.core.exception.base; import lombok.AllArgsConstructor; import org.dromara.common.core.utils.MessageUtils; import org.dromara.common.core.utils.StringUtils; import lombok.Data; @@ -16,6 +17,7 @@ @Data @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @AllArgsConstructor public class BaseException extends RuntimeException { @Serial @@ -40,13 +42,6 @@ * 错误消息 */ private String defaultMessage; public BaseException(String module, String code, Object[] args, String defaultMessage) { this.module = module; this.code = code; this.args = args; this.defaultMessage = defaultMessage; } public BaseException(String module, String code, Object[] args) { this(module, code, args, null);