我正在尝试在市场上查询与电子邮件地址匹配的帐户,当它找不到结果时,尽管我的 try/catch 阻止了它,但它会引发未捕获的异常。
try {
$vendor = $this->marketplace ->accounts ->query()
->filter(Balanced\Account::$f->email_address->eq($this->vendor['email']))
->one();
$this->balanced_vendor = $vendor;
return true;
} catch (Balanced\Exceptions\HTTPError $e) {
$this->notify('no-vendor', $e);
}
我可能做错了什么?
谢谢 !