XmlTransaction::abort

#include <DbXml.hpp>

void XmlTransaction::abort()

The XmlTransaction::abort method causes an abnormal termination of the transaction. All write operations previously performed within the scope of the transaction are undone. Before this method returns, any locks held by the transaction will have been released.

In the case of nested transactions, aborting a parent transaction causes all children (unresolved or not) of the parent transaction to be aborted.

After XmlTransaction::abort method has been called, regardless of its return, the XmlTransaction method handle may not be accessed again.

Errors

The XmlTransaction::abort method may fail and throw XmlException , encapsulating one of the following non-zero errors:

TRANSACTION_ERROR

Cannot use XmlTransaction once committed or aborted

Class

XmlTransaction

See Also

XmlTransaction Methods