This commit is contained in:
2022-07-29 09:17:07 +08:00
committed by GitHub
parent a820c534d2
commit 2414f5e4c9
@@ -16,13 +16,21 @@ public class BaseException extends RuntimeException {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private ResponseCode code; private ResponseCode code;
/**
* BaseException
* ResponseCode code
**/
public BaseException(ResponseCode code) { public BaseException(ResponseCode code) {
this.code = code; this.code = code;
} }
/**
* BaseException
* ResponseCode code
* Throwable cause
**/
public BaseException(Throwable cause, ResponseCode code) { public BaseException(Throwable cause, ResponseCode code) {
super(cause); super(cause);
this.code = code; this.code = code;