first commit

This commit is contained in:
xiang
2026-05-02 14:09:43 +08:00
commit f05e3fbd88
23 changed files with 1101 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package com.xiang.common.exception;
import lombok.Getter;
@Getter
public class BusinessException extends RuntimeException {
private final String ERROR_CODE = "500";
private final String code;
public BusinessException(String message) {
super(message);
this.code = ERROR_CODE;
}
public BusinessException(String code, String message) {
super(message);
this.code = code;
}
}