summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-20 13:52:56 +0000
committerErik Johnston <erik@matrix.org>2015-03-20 14:11:38 +0000
commit87db64b83962873a3cf2af951e4c4bc2e4d50d76 (patch)
tree326af613b0f40a1c5ad6898bbafb517c18d7ba5c /synapse/storage/_base.py
parentMerge pull request #112 from matrix-org/hotfixes-v0.8.1-r2 (diff)
downloadsynapse-87db64b83962873a3cf2af951e4c4bc2e4d50d76.tar.xz
Rearrange storage modules
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 9125bb1198..0260b4e645 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -789,6 +789,13 @@ class SQLBaseStore(object):
         return result[0] if result else None
 
 
+class _RollbackButIsFineException(Exception):
+    """ This exception is used to rollback a transaction without implying
+    something went wrong.
+    """
+    pass
+
+
 class Table(object):
     """ A base class used to store information about a particular table.
     """