From 8bba1fd9321fd32eabf7f84406f50d78ee1104ac Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Sun, 16 Aug 2009 07:32:56 -0500 Subject: [PATCH] structured Exceptions a bit more like most python apps seem to do it (and as suggested in the manual) --- pyfpdb/Exceptions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyfpdb/Exceptions.py b/pyfpdb/Exceptions.py index 8259a484..0b7e5691 100644 --- a/pyfpdb/Exceptions.py +++ b/pyfpdb/Exceptions.py @@ -1,4 +1,7 @@ -class FpdbParseError(Exception): +class FPDBError(Exception): + pass + +class FpdbParseError(FPDBError): def __init__(self,hid=None): self.hid = hid