Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 0 |
1 | <?php |
||
5 | class ConnectionException extends DBALException |
||
6 | { |
||
7 | /** |
||
8 | * @return \Doctrine\DBAL\ConnectionException |
||
9 | */ |
||
10 | 42 | public static function commitFailedRollbackOnly() |
|
11 | { |
||
12 | 42 | return new self('Transaction commit failed because the transaction has been marked for rollback only.'); |
|
13 | } |
||
14 | |||
15 | /** |
||
16 | * @return \Doctrine\DBAL\ConnectionException |
||
17 | */ |
||
18 | 84 | public static function noActiveTransaction() |
|
19 | { |
||
20 | 84 | return new self('There is no active transaction.'); |
|
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return \Doctrine\DBAL\ConnectionException |
||
25 | */ |
||
26 | public static function savepointsNotSupported() |
||
27 | { |
||
28 | return new self('Savepoints are not supported by this driver.'); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return \Doctrine\DBAL\ConnectionException |
||
33 | */ |
||
34 | 42 | public static function mayNotAlterNestedTransactionWithSavepointsInTransaction() |
|
37 | } |
||
38 | } |
||
39 |