无法使用try catch捕捉异常

[attach]2182[/attach] [attach]2183[/attach] 按道理,try catch,异常应该走我自己的日志打印。但是并没有,还是在面板输出,日志里也没有。...

sszxcss 发表与 2019-06-18 3214 浏览 1 回答
workerman是不是不能使用throw new \Exception

使用php start.php start时在终端无法看到抛错信息 代码如下: if (!empty($auth)) { try{ $re_obj->auth($auth); } catch(\Exception $e){ throw new \Exception('redis密码错误或连接错误!'); } } 是不是不能这样用?还是有其他的使用方...

liang 发表与 2016-05-09 6707 浏览 2 回答

tastyz

186
积分
0
获赞数
0
粉丝数
2020-07-07 加入
🔝