vendor/doctrine/dbal/src/ConnectionException.php line 14

Open in your IDE?
  1. <?php
  2. namespace Doctrine\DBAL;
  3. class ConnectionException extends Exception
  4. {
  5.     /** @return ConnectionException */
  6.     public static function commitFailedRollbackOnly()
  7.     {
  8.         return new self('Transaction commit failed because the transaction has been marked for rollback only.');
  9.     }
  10.     /** @return ConnectionException */
  11.     public static function noActiveTransaction()
  12.     {
  13.         return new self('There is no active transaction.');
  14.     }
  15.     /** @return ConnectionException */
  16.     public static function savepointsNotSupported()
  17.     {
  18.         return new self('Savepoints are not supported by this driver.');
  19.     }
  20.     /** @return ConnectionException */
  21.     public static function mayNotAlterNestedTransactionWithSavepointsInTransaction()
  22.     {
  23.         return new self('May not alter the nested transaction with savepoints behavior while a transaction is open.');
  24.     }
  25. }