[Zope3-checkins] CVS: Zope3/lib/python/Transaction - Exceptions.py:1.3

Jeremy Hylton jeremy@zope.com
Thu, 25 Jul 2002 16:52:15 -0400


Update of /cvs-repository/Zope3/lib/python/Transaction
In directory cvs.zope.org:/tmp/cvs-serv11920/Transaction

Modified Files:
	Exceptions.py 
Log Message:
Make base exception inherit from StandardError.
Add RollbackError.




=== Zope3/lib/python/Transaction/Exceptions.py 1.2 => 1.3 ===
 # FOR A PARTICULAR PURPOSE.
 # 
 ##############################################################################
-class TransactionError(Exception):
-    """An error occured due to normal transaction processing
-    """
+class TransactionError(StandardError):
+    """An error occured due to normal transaction processing."""
 
 class ConflictError(TransactionError):
     """Two transactions tried to modify the same object at once
 
     This transaction should be resubmitted.
     """
+
+class RollbackError(TransactionError):
+    """An error occurred rolling back a savepoint."""
+