我正在阅读一个有时很挑剔的 URL,并抛出一个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 函数而不是一起停止它。