exceptions for gacks
authorScott Baker <bakers@cs.arizona.edu>
Thu, 9 Oct 2008 00:01:38 +0000 (00:01 +0000)
committerScott Baker <bakers@cs.arizona.edu>
Thu, 9 Oct 2008 00:01:38 +0000 (00:01 +0000)
gacks/gacksexcep.py [new file with mode: 0644]

diff --git a/gacks/gacksexcep.py b/gacks/gacksexcep.py
new file mode 100644 (file)
index 0000000..dbfb5fb
--- /dev/null
@@ -0,0 +1,14 @@
+class GacksError(Exception):
+    def __init__(self, value):
+        self.value = value
+    def __str__(self):
+        return repr(self.value)
+
+class GacksMultipleRecordCollision(GacksError):
+    pass
+
+class GacksResourceNotFound(GacksError):
+    pass
+
+class GacksConflictingInsert(GacksError):
+    pass