Commit ca465eae by Alexander Makarov

Renamed handleError to handleException

parent 48dbde39
......@@ -284,7 +284,7 @@ class Command extends \yii\base\Component
return $n;
} catch (\Exception $e) {
Yii::endProfile($token, __METHOD__);
$this->handleError($e, $rawSql);
$this->handleException($e, $rawSql);
}
}
......@@ -417,7 +417,7 @@ class Command extends \yii\base\Component
return $result;
} catch (\Exception $e) {
Yii::endProfile($token, 'yii\db\Command::query');
$this->handleError($e, $rawSql);
$this->handleException($e, $rawSql);
}
}
......@@ -775,7 +775,7 @@ class Command extends \yii\base\Component
* @param string $rawSql SQL that produced exception
* @throws Exception
*/
protected function handleError(\Exception $e, $rawSql)
protected function handleException(\Exception $e, $rawSql)
{
if ($e instanceof Exception) {
throw $e;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment