Exceptions, Eric style (lost in merge)

This commit is contained in:
Matt Turnbull 2009-08-28 07:43:12 +01:00
parent 09350e8f52
commit 13dcaae591

View File

@ -1,8 +1,3 @@
class DuplicateError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
class FpdbError(Exception):
def __init__(self, value):
@ -10,7 +5,7 @@ class FpdbError(Exception):
def __str__(self):
return repr(self.value)
class FpdbParseError(Exception):
class FpdbParseError(FpdbError):
def __init__(self,value='',hid=''):
self.value = value
self.hid = hid
@ -20,4 +15,6 @@ class FpdbParseError(Exception):
else:
return repr(self.value)
class DuplicateError(FpdbError):
pass