MongoDB\Driver\Session::abortTransaction

(mongodb >=1.5.0)

MongoDB\Driver\Session::abortTransactionAborts a transaction

Beschreibung

final public MongoDB\Driver\Session::abortTransaction ( void ) : void

This method aborts an existing transaction and all the associated operations are rolled back. It is like all operations that were part of this transaction never existed.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Es wird kein Wert zurückgegeben.

Fehler/Exceptions

  • Throws MongoDB\Driver\InvalidArgumentException on argument parsing errors.
  • Throws MongoDB\Driver\Exception\RuntimeException if the the transaction could not be aborted (e.g. a transaction was not started).

Siehe auch