[Zope-Checkins] CVS: Zope3/lib/python/Schema - Exceptions.py:1.6

Stephan Richter srichter@cbu.edu
Tue, 16 Jul 2002 22:37:07 -0400


Update of /cvs-repository/Zope3/lib/python/Schema
In directory cvs.zope.org:/tmp/cvs-serv489/lib/python/Schema

Modified Files:
	Exceptions.py 
Log Message:
I finished the tests for the FormView now. Next I will make the 
SchemaTestObject work in Zope runtime and tehn I will try to work on a
simple Layouter before fixing teh Bug Collector for an initial checkin.


=== Zope3/lib/python/Schema/Exceptions.py 1.5 => 1.6 ===
     way for the validator to save time."""
     pass
 
+
 class ValidationError(Exception):
     """If some check during the Validation process fails, this exception is
     raised."""
@@ -33,6 +34,7 @@
     def __cmp__(self, other):
         return cmp(self.error_name, other.error_name)
 
+
 class ValidationErrorsAll(Exception):
     """This is a collection error that contains all exceptions that occured
     during the validation process."""
@@ -41,10 +43,20 @@
         Exception.__init__(self)
         self.errors = list
 
+
 class ConversionError(Exception):
-    """If some conversion fails, this exception is raised.
-    """
+    """If some conversion fails, this exception is raised."""
+
     def __init__(self, error_name, original_exception=None):
         Exception.__init__(self)
         self.error_name = error_name
         self.original_exception = original_exception
+
+
+class ConversionErrorsAll(Exception):
+    """This is a collection error that contains all exceptions that occured
+    during the conversion process."""
+
+    def __init__(self, list):
+        Exception.__init__(self)
+        self.errors = list