|
|
@ -1,5 +1,10 @@
|
|
|
|
package org.dromara.common.core.exception;
|
|
|
|
package org.dromara.common.core.exception;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.Serial;
|
|
|
|
import java.io.Serial;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -7,6 +12,10 @@ import java.io.Serial;
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author ruoyi
|
|
|
|
* @author ruoyi
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Data
|
|
|
|
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
|
|
|
|
|
|
@AllArgsConstructor
|
|
|
|
public final class ServiceException extends RuntimeException {
|
|
|
|
public final class ServiceException extends RuntimeException {
|
|
|
|
|
|
|
|
|
|
|
|
@Serial
|
|
|
|
@Serial
|
|
|
@ -27,12 +36,6 @@ public final class ServiceException extends RuntimeException {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private String detailMessage;
|
|
|
|
private String detailMessage;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 空构造方法,避免反序列化问题
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public ServiceException() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ServiceException(String message) {
|
|
|
|
public ServiceException(String message) {
|
|
|
|
this.message = message;
|
|
|
|
this.message = message;
|
|
|
|
}
|
|
|
|
}
|
|
|
|