Merge remote-tracking branch 'origin/feature/REQ-3581' into feature/REQ-3581

This commit is contained in:
yanglin 2025-02-21 11:50:32 +08:00
commit f6a1937025

View File

@ -60,4 +60,9 @@ public class ExceptionAdviceHandler {
return ApiResult.err(objectErrorDefaultMessage); return ApiResult.err(objectErrorDefaultMessage);
} }
@ExceptionHandler(cn.axzo.foundation.exception.BusinessException.class)
public ApiResult<Void> businessExceptionHandler(cn.axzo.foundation.exception.BusinessException e){
log.warn("业务异常", e);
return ApiResult.err(e.getErrorMsg());
}
} }