use Exception;public function getInfo(){ ? ?try{ ? ? ? ?1/0; ? ?}catch (Exception $exception){ ? ? ? ?throw $exception; ? ?}}這邊拋出異常了,并且config.php'exception_handle'???????=>?'app\lib\exception\ExceptionHandler',也配置了。全局異常類如下:use Exception;use think\exception\Handle;class ExceptionHandler extends Handle{ ? ?public function render(Exception $e) ? ?{ ? ? ? ?return '8888888'; // TODO: Change the autogenerated stub ? ?}}發(fā)送請(qǐng)求的時(shí)候報(bào)下面的錯(cuò)誤信息,求教大神這是什么情況
- 1 回答
- 0 關(guān)注
- 849 瀏覽
添加回答
舉報(bào)
0/150
提交
取消