public function shouldIgnoreError($exception) { if (empty($this->errorCodesToIgnore)) { return false; } foreach ($this->errorCodesToIgnore as $code) { if (Db::get()->isErrNo($exception, $code)) { return true; } } return false; }