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 13:52:56 +0000
commitcb8162d3d17a97574073d49bd6eef51c93b68157 (patch)
treec21af0524f31ce8ae069b0cd74c56ed27ed38868 /synapse/storage/_base.py
parentGenerate transaction id in code (diff)
downloadsynapse-cb8162d3d17a97574073d49bd6eef51c93b68157.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 24ff872dad..37bb28e6cf 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -791,6 +791,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.
     """