TransactionOutOfOrderException

Exception thrown when a rollback() resulted in other active transactions being rolled-back. Hierarchy class \Drupal\Core\Database\TransactionException extends \RuntimeException implements DatabaseExceptionclass \Drupal\Core\Database\TransactionOutOfOrderException implements DatabaseException File core/lib/Drupal/Core/Database/TransactionOutOfOrderException.php, line 8 Namespace Drupal\Core\Database Members

TransactionNoActiveException

Exception for when popTransaction() is called with no active transaction. Hierarchy class \Drupal\Core\Database\TransactionException extends \RuntimeException implements DatabaseExceptionclass \Drupal\Core\Database\TransactionNoActiveException implements DatabaseException File core/lib/Drupal/Core/Database/TransactionNoActiveException.php, line 8 Namespace Drupal\Core\Database Members

TransactionNameNonUniqueException

Exception thrown when a savepoint or transaction name occurs twice. Hierarchy class \Drupal\Core\Database\TransactionException extends \RuntimeException implements DatabaseExceptionclass \Drupal\Core\Database\TransactionNameNonUniqueException implements DatabaseException File core/lib/Drupal/Core/Database/TransactionNameNonUniqueException.php, line 8 Namespace Drupal\Core\Database Members

TransactionExplicitCommitNotAllowedException

Exception to deny attempts to explicitly manage transactions. This exception will be thrown when the PDO connection commit() is called. Code should never call this method directly. Hierarchy class \Drupal\Core\Database\TransactionException extends \RuntimeException implements DatabaseExceptionclass \Drupal\Core\Database\TransactionExplicitCommitNotAllowedException implements DatabaseException File core/lib/Drupal/Core/Database/TransactionExplicitCommitNotAllowedException.php, line 11 Nam

TransactionException

Exception thrown by an error in a database transaction. Hierarchy class \Drupal\Core\Database\TransactionException extends \RuntimeException implements DatabaseException File core/lib/Drupal/Core/Database/TransactionException.php, line 8 Namespace Drupal\Core\Database Members

TransactionCommitFailedException

Exception thrown when a commit() function fails. Hierarchy class \Drupal\Core\Database\TransactionException extends \RuntimeException implements DatabaseExceptionclass \Drupal\Core\Database\TransactionCommitFailedException implements DatabaseException File core/lib/Drupal/Core/Database/TransactionCommitFailedException.php, line 8 Namespace Drupal\Core\Database Members

Transaction::__destruct

public Transaction::__destruct() File core/lib/Drupal/Core/Database/Transaction.php, line 66 Class Transaction A wrapper class for creating and managing database transactions. Namespace Drupal\Core\Database Code public function __destruct() { // If we rolled back then the transaction would have already been popped. if (!$this->rolledBack) { $this->connection->popTransaction($this->name); } }

Transaction::__construct

public Transaction::__construct(Connection $connection, $name = NULL) File core/lib/Drupal/Core/Database/Transaction.php, line 48 Class Transaction A wrapper class for creating and managing database transactions. Namespace Drupal\Core\Database Code public function __construct(Connection $connection, $name = NULL) { $this->connection = $connection; // If there is no transaction depth, then no transaction has started. Name // the transaction 'drupal_transaction'. if (!$depth =

Transaction::rollback

public Transaction::rollback() Rolls back the current transaction. This is just a wrapper method to rollback whatever transaction stack we are currently in, which is managed by the connection object itself. Note that logging (preferable with watchdog_exception()) needs to happen after a transaction has been rolled back or the log messages will be rolled back too. See also \Drupal\Core\Database\Connection::rollback() watchdog_exception() File core/lib/Drupal/Core/Database/Transaction.php, line

Transaction::name

public Transaction::name() Retrieves the name of the transaction or savepoint. File core/lib/Drupal/Core/Database/Transaction.php, line 76 Class Transaction A wrapper class for creating and managing database transactions. Namespace Drupal\Core\Database Code public function name() { return $this->name; }