refactor: RuntimeException 统一为 BusinessException 并规范注释
- 文件上传、代码生成、用户/菜单/角色校验等场景的 RuntimeException 统一替换为 BusinessException - 阿里云 OSS 上传失败补记日志并保留原始异常 cause - 修复 prod 微信小程序配置 app-secret 无法绑定 WxMaProperties.secret 字段的问题 - UserServiceImpl 展开通配符 import 并规范化 javadoc
This commit is contained in:
1 parent
a33de52700
commit
7ecbc16b69
14 files changed
+159
-89
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package com.youlai.boot.codegen.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.youlai.boot.common.exception.BusinessException;
|
||||
import com.youlai.boot.common.result.PageResult;
|
||||
import com.youlai.boot.common.result.Result;
|
||||
import com.youlai.boot.codegen.config.CodegenProperties;
|
||||
@@ -106,7 +107,7 @@ public class CodegenController {
|
||||
outputStream.flush();
|
||||
} catch (IOException e) {
|
||||
log.error("Error while writing the zip file1 to response", e);
|
||||
throw new RuntimeException("Failed to write the zip file1 to response", e);
|
||||
throw new BusinessException("代码生成压缩包响应写入失败", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user