Replace @throws ConnectionException with @throws DBALException for transactions

Not only a connection exception is possible (e.g. it may be a connection failure or a failure to detect the platform).
parent dbfd1070
...@@ -1188,7 +1188,7 @@ class Connection ...@@ -1188,7 +1188,7 @@ class Connection
* *
* @return void * @return void
* *
* @throws ConnectionException * @throws DBALException
*/ */
public function setNestTransactionsWithSavepoints($nestTransactionsWithSavepoints) public function setNestTransactionsWithSavepoints($nestTransactionsWithSavepoints)
{ {
...@@ -1262,8 +1262,7 @@ class Connection ...@@ -1262,8 +1262,7 @@ class Connection
/** /**
* @return bool * @return bool
* *
* @throws ConnectionException If the commit failed due to no active transaction or * @throws DBALException
* because the transaction was marked for rollback only.
*/ */
public function commit() public function commit()
{ {
...@@ -1336,7 +1335,7 @@ class Connection ...@@ -1336,7 +1335,7 @@ class Connection
* *
* @return bool * @return bool
* *
* @throws ConnectionException If the rollback operation failed. * @throws DBALException
*/ */
public function rollBack() public function rollBack()
{ {
...@@ -1388,7 +1387,7 @@ class Connection ...@@ -1388,7 +1387,7 @@ class Connection
* *
* @return void * @return void
* *
* @throws ConnectionException * @throws DBALException
*/ */
public function createSavepoint($savepoint) public function createSavepoint($savepoint)
{ {
...@@ -1406,7 +1405,7 @@ class Connection ...@@ -1406,7 +1405,7 @@ class Connection
* *
* @return void * @return void
* *
* @throws ConnectionException * @throws DBALException
*/ */
public function releaseSavepoint($savepoint) public function releaseSavepoint($savepoint)
{ {
...@@ -1428,7 +1427,7 @@ class Connection ...@@ -1428,7 +1427,7 @@ class Connection
* *
* @return void * @return void
* *
* @throws ConnectionException * @throws DBALException
*/ */
public function rollbackSavepoint($savepoint) public function rollbackSavepoint($savepoint)
{ {
......
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