异常
This commit is contained in:
@@ -2,6 +2,8 @@ package com.czg.exception;
|
||||
|
||||
import com.czg.resp.CzgRespCode;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 自定义异常
|
||||
*
|
||||
@@ -9,6 +11,7 @@ import com.czg.resp.CzgRespCode;
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public class CzgException extends RuntimeException {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private int code;
|
||||
|
||||
@@ -16,7 +16,7 @@ public class OrderValidateException extends RuntimeException{
|
||||
private String msg;
|
||||
|
||||
public OrderValidateException(String msg) {
|
||||
super(msg);
|
||||
// super(msg);
|
||||
this.code = CzgRespCode.FAILURE.getCode();
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user