Commit fd5e6ccf by Carsten Brandt

fixed db exception according to signature change

parent baac7e14
...@@ -14,7 +14,6 @@ use yii\base\InvalidConfigException; ...@@ -14,7 +14,6 @@ use yii\base\InvalidConfigException;
use yii\base\InvalidParamException; use yii\base\InvalidParamException;
use yii\base\NotSupportedException; use yii\base\NotSupportedException;
use yii\base\UnknownMethodException; use yii\base\UnknownMethodException;
use yii\db\Exception;
use yii\db\TableSchema; use yii\db\TableSchema;
/** /**
......
...@@ -256,7 +256,7 @@ class Connection extends Component ...@@ -256,7 +256,7 @@ class Connection extends Component
} else { } else {
\Yii::error("Failed to open DB connection ({$this->dsn}): " . $errorNumber . ' - ' . $errorDescription, __CLASS__); \Yii::error("Failed to open DB connection ({$this->dsn}): " . $errorNumber . ' - ' . $errorDescription, __CLASS__);
$message = YII_DEBUG ? 'Failed to open DB connection: ' . $errorNumber . ' - ' . $errorDescription : 'Failed to open DB connection.'; $message = YII_DEBUG ? 'Failed to open DB connection: ' . $errorNumber . ' - ' . $errorDescription : 'Failed to open DB connection.';
throw new Exception($message, (int)$errorNumber, $errorDescription); throw new Exception($message, $errorDescription, (int)$errorNumber);
} }
} }
} }
...@@ -355,7 +355,7 @@ class Connection extends Component ...@@ -355,7 +355,7 @@ class Connection extends Component
* *
* See [redis protocol description](http://redis.io/topics/protocol) * See [redis protocol description](http://redis.io/topics/protocol)
* for details on the mentioned reply types. * for details on the mentioned reply types.
* @trows CException for commands that return [error reply](http://redis.io/topics/protocol#error-reply). * @trows Exception for commands that return [error reply](http://redis.io/topics/protocol#error-reply).
*/ */
public function executeCommand($name, $params=array()) public function executeCommand($name, $params=array())
{ {
......
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