src/main/java/com/example/jz/exception/BusinessException.java
@@ -5,16 +5,12 @@ public class BusinessException extends RuntimeException { /** * */ private static final long serialVersionUID = -4137688758944857209L; /** * http状态码 */ private Integer httpStatusCode; /** * @param httpStatus http状态码 @@ -32,15 +28,12 @@ this.httpStatusCode = httpStatus.value(); } public BusinessException(String msg) { super(msg); this.httpStatusCode = BusinessHttpStatus.BAD_EXCEPTION.value(); } public Integer getHttpStatusCode() { return httpStatusCode; } } }