[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/POSException.py
Reimporting exception classes that were moved from
ZODB.POSException to
Christian Theune
ct at gocept.com
Sat Nov 10 11:45:01 EST 2007
Log message for revision 81724:
Reimporting exception classes that were moved from ZODB.POSException to
transaction.interfaces.
Changed:
U ZODB/trunk/src/ZODB/POSException.py
-=-
Modified: ZODB/trunk/src/ZODB/POSException.py
===================================================================
--- ZODB/trunk/src/ZODB/POSException.py 2007-11-10 16:34:33 UTC (rev 81723)
+++ ZODB/trunk/src/ZODB/POSException.py 2007-11-10 16:45:00 UTC (rev 81724)
@@ -17,6 +17,10 @@
from ZODB.utils import oid_repr, readable_tid_repr
+# BBB: We moved the two transactions to the transaction package
+from transaction.interfaces import TransactionError, TransactionFailedError
+
+
def _fmt_undo(oid, reason):
s = reason and (": %s" % reason) or ""
return "Undo error %s%s" % (oid_repr(oid), s)
@@ -44,19 +48,7 @@
def __str__(self):
return oid_repr(self.args[0])
-class TransactionError(POSError):
- """An error occurred due to normal transaction processing."""
-class TransactionFailedError(POSError):
- """Cannot perform an operation on a transaction that previously failed.
-
- An attempt was made to commit a transaction, or to join a transaction,
- but this transaction previously raised an exception during an attempt
- to commit it. The transaction must be explicitly aborted, either by
- invoking abort() on the transaction, or begin() on its transaction
- manager.
- """
-
class ConflictError(TransactionError):
"""Two transactions tried to modify the same object at once.
More information about the Zodb-checkins
mailing list