疯狂的狮子Li
2025-02-07 95c01301f65379e7634e4619bf4c49186aa5be41
ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/exception/ServiceException.java
@@ -1,5 +1,7 @@
package org.dromara.common.core.exception;
import lombok.*;
import java.io.Serial;
/**
@@ -7,6 +9,10 @@
 *
 * @author ruoyi
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public final class ServiceException extends RuntimeException {
    @Serial
@@ -27,12 +33,6 @@
     */
    private String detailMessage;
    /**
     * 空构造方法,避免反序列化问题
     */
    public ServiceException() {
    }
    public ServiceException(String message) {
        this.message = message;
    }
@@ -42,17 +42,9 @@
        this.code = code;
    }
    public String getDetailMessage() {
        return detailMessage;
    }
    @Override
    public String getMessage() {
        return message;
    }
    public Integer getCode() {
        return code;
    }
    public ServiceException setMessage(String message) {