我想要使用Twitter的API,我得到的错误是202和32并且得到了一些错误按摩。
我想在收到错误后继续编写脚本。
Laravel有没有办法做到这一点
答案 0 :(得分:3)
Twitter API可能会抛出异常..您必须抓住它并继续执行脚本。
try {
$twitterApi->aMethod($someParams);
} catch (Twitter_Exception $e) {
// some log of the error message
}
// continue the script here