ArrayParameters
2 years ago
Cache
9 months ago
Driver
9 months ago
Event
2 years ago
Exception
9 months ago
Id
2 years ago
Logging
2 years ago
Platforms
9 months ago
Portability
2 years ago
Query
2 years ago
SQL
9 months ago
Schema
8 months ago
Types
9 months ago
ArrayParameterType.php
2 years ago
ColumnCase.php
2 years ago
Configuration.php
9 months ago
Connection.php
9 months ago
ConnectionException.php
2 years ago
Driver.php
2 years ago
DriverManager.php
2 years ago
Events.php
2 years ago
Exception.php
2 years ago
ExpandArrayParameters.php
2 years ago
FetchMode.php
2 years ago
LockMode.php
2 years ago
ParameterType.php
2 years ago
Query.php
2 years ago
Result.php
2 years ago
Statement.php
2 years ago
TransactionIsolationLevel.php
2 years ago
VersionAwarePlatformDriver.php
2 years ago
index.php
2 years ago
ConnectionException.php
23 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Doctrine\DBAL; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | class ConnectionException extends Exception |
| 5 | { |
| 6 | public static function commitFailedRollbackOnly() |
| 7 | { |
| 8 | return new self('Transaction commit failed because the transaction has been marked for rollback only.'); |
| 9 | } |
| 10 | public static function noActiveTransaction() |
| 11 | { |
| 12 | return new self('There is no active transaction.'); |
| 13 | } |
| 14 | public static function savepointsNotSupported() |
| 15 | { |
| 16 | return new self('Savepoints are not supported by this driver.'); |
| 17 | } |
| 18 | public static function mayNotAlterNestedTransactionWithSavepointsInTransaction() |
| 19 | { |
| 20 | return new self('May not alter the nested transaction with savepoints behavior while a transaction is open.'); |
| 21 | } |
| 22 | } |
| 23 |