[wwwsearch-commits] r18302 - wwwsearch/ClientForm/trunk

jjlee at codespeak.net jjlee at codespeak.net
Sun Oct 9 03:00:17 CEST 2005


Author: jjlee
Date: Sun Oct  9 03:00:16 2005
New Revision: 18302

Modified:
   wwwsearch/ClientForm/trunk/ClientForm.py
Log:
Alter exception hierarchy: get rid of ItemError, introduce LocateError -- now makes sense for AmbiguityError to be raised about controls, and ItemCountError is identified as the odd one out

Modified: wwwsearch/ClientForm/trunk/ClientForm.py
==============================================================================
--- wwwsearch/ClientForm/trunk/ClientForm.py	(original)
+++ wwwsearch/ClientForm/trunk/ClientForm.py	Sun Oct  9 03:00:16 2005
@@ -27,7 +27,7 @@
 """
 
 # XXXX
-# Check old test suite passes in backwards_compat mode
+# Add id arg to .get()
 
 # XXX
 # Add some more functional tests
@@ -408,11 +408,12 @@
         self._fp.write("\r\n--" + boundary + "--\r\n")
 
 
-class ControlNotFoundError(ValueError): pass
-class ItemError(ValueError): pass
-class ItemNotFoundError(ItemError): pass
-class ItemCountError(ItemError): pass
-class AmbiguityError(ItemError): pass
+class LocateError(ValueError): pass
+class AmbiguityError(LocateError): pass
+class ControlNotFoundError(LocateError): pass
+class ItemNotFoundError(LocateError): pass
+
+class ItemCountError(ValueError): pass
 
 
 class ParseError(Exception): pass


More information about the wwwsearch-commits mailing list