[Zope3-checkins] CVS: Zope3/src/zope/component - exceptions.py:1.3 interfaces.py:1.6

Jeremy Hylton jeremy@zope.com
Sun, 22 Jun 2003 15:00:30 -0400


Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv7181/src/zope/component

Modified Files:
	exceptions.py interfaces.py 
Log Message:
Make the exceptions visible from the interface module.


=== Zope3/src/zope/component/exceptions.py 1.2 => 1.3 ===
--- Zope3/src/zope/component/exceptions.py:1.2	Wed Dec 25 09:13:31 2002
+++ Zope3/src/zope/component/exceptions.py	Sun Jun 22 15:00:29 2003
@@ -14,13 +14,15 @@
 
 from zope.exceptions import NotFoundError
 
+__all__ = ["ComponentLookupError",
+           "Invalid",
+           "Misused"]
+
 class ComponentLookupError(NotFoundError):
-    "A component could not be found"
+    """A component could not be found."""
 
 class Invalid(Exception):
-    """A component doesn't satisfy a promise
-    """
+    """A component doesn't satisfy a promise."""
 
 class Misused(Exception):
-    """A component is being used (registered) for the wrong interface
-    """
+    """A component is being used (registered) for the wrong interface."""


=== Zope3/src/zope/component/interfaces.py 1.5 => 1.6 ===
--- Zope3/src/zope/component/interfaces.py:1.5	Fri May 23 18:17:33 2003
+++ Zope3/src/zope/component/interfaces.py	Sun Jun 22 15:00:29 2003
@@ -17,6 +17,7 @@
 """
 
 from zope.interface import Interface, Attribute
+from zope.component.exceptions import *
 
 class IComponentArchitecture(Interface):
     """The Component Architecture is defined by six key services,