xc- 自定义异常 //自定义异常 @Data public class BusinessException extends RuntimeException { //参数 错误信息错误码 private ErrorCode errorCode; public BusinessException(ErrorCode errorCode) { this.errorCode = errorCode; } }