mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
Renamed handleError to handleException
This commit is contained in:
@ -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
|
|||||||
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
|
|||||||
* @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;
|
||||||
|
Reference in New Issue
Block a user