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 ResponseCode code;
/**
* BaseException
* ResponseCode code
**/
public BaseException(ResponseCode code) {
this.code = code;
}
/**
* BaseException
* ResponseCode code
* Throwable cause
**/
public BaseException(Throwable cause, ResponseCode code) {
super(cause);
this.code = code;