| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ConnectionException extends DBALException |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @return ConnectionException |
||
| 12 | */ |
||
| 13 | 94 | public static function commitFailedRollbackOnly() |
|
| 14 | { |
||
| 15 | 94 | return new self('Transaction commit failed because the transaction has been marked for rollback only.'); |
|
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return ConnectionException |
||
| 20 | */ |
||
| 21 | 142 | public static function noActiveTransaction() |
|
| 22 | { |
||
| 23 | 142 | return new self('There is no active transaction.'); |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return ConnectionException |
||
| 28 | */ |
||
| 29 | 2 | public static function savepointsNotSupported() |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return ConnectionException |
||
| 36 | */ |
||
| 37 | 46 | public static function mayNotAlterNestedTransactionWithSavepointsInTransaction() |
|
| 40 | } |
||
| 41 | } |
||
| 42 |