Commit 8886fb23 by Alexander Makarov

Fixed handleException method visibility, removed unnecessary slashes from FQN

parent ab96c1ab
...@@ -77,7 +77,7 @@ abstract class Schema extends Object ...@@ -77,7 +77,7 @@ abstract class Schema extends Object
* If left part is found in DB error message exception class from the right part is used. * If left part is found in DB error message exception class from the right part is used.
*/ */
public $exceptionMap = [ public $exceptionMap = [
'SQLSTATE[23' => '\yii\db\IntegrityException', 'SQLSTATE[23' => 'yii\db\IntegrityException',
]; ];
/** /**
...@@ -486,7 +486,7 @@ abstract class Schema extends Object ...@@ -486,7 +486,7 @@ abstract class Schema extends Object
* @param string $rawSql SQL that produced exception * @param string $rawSql SQL that produced exception
* @throws Exception * @throws Exception
*/ */
protected function handleException(\Exception $e, $rawSql) public function handleException(\Exception $e, $rawSql)
{ {
if ($e instanceof Exception) { if ($e instanceof Exception) {
throw $e; throw $e;
......
...@@ -69,7 +69,7 @@ class Schema extends \yii\db\Schema ...@@ -69,7 +69,7 @@ class Schema extends \yii\db\Schema
* If left part is found in DB error message exception class from the right part is used. * If left part is found in DB error message exception class from the right part is used.
*/ */
public $exceptionMap = [ public $exceptionMap = [
'Operation would have caused one or more unique constraint violations' => '\yii\db\IntegrityException', 'Operation would have caused one or more unique constraint violations' => 'yii\db\IntegrityException',
]; ];
/** /**
......
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