[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Forms - Exceptions.py:1.2

Marius Gedminas mgedmin@codeworks.lt
Wed, 9 Oct 2002 09:53:54 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/Forms
In directory cvs.zope.org:/tmp/cvs-serv12401

Modified Files:
	Exceptions.py 
Log Message:
Make WidgetInputError printable

=== Zope3/lib/python/Zope/App/Forms/Exceptions.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/Forms/Exceptions.py:1.1	Sat Sep  7 12:18:48 2002
+++ Zope3/lib/python/Zope/App/Forms/Exceptions.py	Wed Oct  9 09:53:54 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """Validation Exceptions
 
@@ -18,21 +18,22 @@
 
 
 class WidgetInputError(Exception):
-    """There were one or more user input errors 
+    """There were one or more user input errors
     """
 
     def __init__(self, widget_name, widget_title, errors):
+        Exception.__init__(self, widget_name, widget_title, errors)
         self.widget_name = widget_name
         self.widget_title = widget_title
         self.errors = errors
-    
-    
+
+
 class ConversionError(WidgetInputError):
     """If some conversion fails, this exception is raised.
     """
 
     def __init__(self, error_name, original_exception=None):
-        Exception.__init__(self)
+        Exception.__init__(self, error_name, original_exception)
         self.error_name = error_name
         self.original_exception = original_exception