Model throw new Exception 的异常,不能被捕获
Closed this issue · 1 comments
langyastudio commented
1、定义了 think\exception\Handle 异常接受类
2、当 Model 层的内部抛出异常(BaseQuery throw new Exception,如 'miss update condition')
Handle 无法捕获,导致页面没有任何信息输出
3、其他地方的异常可以被接受处理
4、基于最新的 6.0.2 版本
langyastudio commented
与 top-think/framework#2205 重复了