Fix bin/publish: use correct .env path for rspade_system Fix bin/publish script: prevent grep exit code 1 from terminating script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
893 B
PHP
Executable File
31 lines
893 B
PHP
Executable File
<?php
|
|
|
|
namespace Doctrine\DBAL;
|
|
|
|
class ConnectionException extends Exception
|
|
{
|
|
/** @return ConnectionException */
|
|
public static function commitFailedRollbackOnly()
|
|
{
|
|
return new self('Transaction commit failed because the transaction has been marked for rollback only.');
|
|
}
|
|
|
|
/** @return ConnectionException */
|
|
public static function noActiveTransaction()
|
|
{
|
|
return new self('There is no active transaction.');
|
|
}
|
|
|
|
/** @return ConnectionException */
|
|
public static function savepointsNotSupported()
|
|
{
|
|
return new self('Savepoints are not supported by this driver.');
|
|
}
|
|
|
|
/** @return ConnectionException */
|
|
public static function mayNotAlterNestedTransactionWithSavepointsInTransaction()
|
|
{
|
|
return new self('May not alter the nested transaction with savepoints behavior while a transaction is open.');
|
|
}
|
|
}
|