From: Scott Baker Date: Thu, 9 Oct 2008 00:01:38 +0000 (+0000) Subject: exceptions for gacks X-Git-Tag: sfa-0.9-0@14641~827 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=3b04a2a951822dcfba2c5a813ee9016b01528370 exceptions for gacks --- diff --git a/gacks/gacksexcep.py b/gacks/gacksexcep.py new file mode 100644 index 00000000..dbfb5fb6 --- /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