This commit is contained in:
2025-11-12 10:23:18 +08:00
parent 36c80bd718
commit 3bae9504a9
4 changed files with 27 additions and 23 deletions

View File

@@ -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;

View File

@@ -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;
}