[entropy.db.exceptions] introduce RestartTransaction exception

Exception raised in case the whole transaction has
been aborted by the database and caller is kindly
required to restart it from the beginning.
This commit is contained in:
Fabio Erculiani
2012-08-14 19:25:22 +02:00
parent 760685674e
commit 9a699e7ae8
+5
View File
@@ -68,3 +68,8 @@ class NotSupportedError(Error):
.rollback() on a connection that does not support
transaction or has transactions turned off. It must be a
subclass of DatabaseError. """
class RestartTransaction(Error):
""" Exception raised in case the whole transaction has
been aborted by the database and caller is kindly
required to restart it from the beginning. """