From ca465eae182ce90633ff5eb10dcbe2f628a57ab3 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 6 May 2014 19:15:18 +0400 Subject: [PATCH] Renamed handleError to handleException --- framework/db/Command.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/db/Command.php b/framework/db/Command.php index 8e6058bad0..f81e9e7feb 100644 --- a/framework/db/Command.php +++ b/framework/db/Command.php @@ -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;