mirror of
https://gitee.com/ZhongBangKeJi/crmeb_java.git
synced 2026-05-01 14:31:26 +08:00
我们发布啦
This commit is contained in:
26
crmeb/src/main/java/com/exception/CrmebException.java
Normal file
26
crmeb/src/main/java/com/exception/CrmebException.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package com.exception;
|
||||
|
||||
import com.common.CommonResult;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.validation.BindException;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.MethodArgumentNotValidException;
|
||||
import org.springframework.web.bind.annotation.ExceptionHandler;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@Slf4j
|
||||
@RestControllerAdvice
|
||||
public class CrmebException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public CrmebException() {}
|
||||
|
||||
public CrmebException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user