git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
305a4e0
)
exceptions for gacks
author
Scott Baker
<bakers@cs.arizona.edu>
Thu, 9 Oct 2008 00:01:38 +0000
(
00:01
+0000)
committer
Scott Baker
<bakers@cs.arizona.edu>
Thu, 9 Oct 2008 00:01:38 +0000
(
00:01
+0000)
gacks/gacksexcep.py
[new file with mode: 0644]
patch
|
blob
diff --git a/gacks/gacksexcep.py
b/gacks/gacksexcep.py
new file mode 100644
(file)
index 0000000..
dbfb5fb
--- /dev/null
+++ b/
gacks/gacksexcep.py
@@ -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