Commit ca465eae by Alexander Makarov

Renamed handleError to handleException

parent 48dbde39
...@@ -284,7 +284,7 @@ class Command extends \yii\base\Component ...@@ -284,7 +284,7 @@ class Command extends \yii\base\Component
return $n; return $n;
} catch (\Exception $e) { } catch (\Exception $e) {
Yii::endProfile($token, __METHOD__); Yii::endProfile($token, __METHOD__);
$this->handleError($e, $rawSql); $this->handleException($e, $rawSql);
} }
} }
...@@ -417,7 +417,7 @@ class Command extends \yii\base\Component ...@@ -417,7 +417,7 @@ class Command extends \yii\base\Component
return $result; return $result;
} catch (\Exception $e) { } catch (\Exception $e) {
Yii::endProfile($token, 'yii\db\Command::query'); 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 ...@@ -775,7 +775,7 @@ class Command extends \yii\base\Component
* @param string $rawSql SQL that produced exception * @param string $rawSql SQL that produced exception
* @throws Exception * @throws Exception
*/ */
protected function handleError(\Exception $e, $rawSql) protected function handleException(\Exception $e, $rawSql)
{ {
if ($e instanceof Exception) { if ($e instanceof Exception) {
throw $e; 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