捕获未捕获的异常异常:SSL读取

时间:2016-03-29 14:18:24

标签: php ssl exception-handling unirest

我正在阅读一个有时很挑剔的网址并抛出Uncaught exception Exception: SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054我尝试过这样做:

try {
  $body  = Unirest\Request::get($url);
} catch (Exception $e) {
  print $e;
  return;
}

但是,错误仍在停止我的任务。我想知道我是否缺少只执行catch函数而不是一起停止它。

0 个答案:

没有答案