[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - zapi.py:1.8

Fred L. Drake, Jr. fred@zope.com
Thu, 26 Jun 2003 22:50:11 -0400


Update of /cvs-repository/Zope3/src/zope/app/interfaces
In directory cvs.zope.org:/tmp/cvs-serv1892/interfaces

Modified Files:
	zapi.py 
Log Message:
Add UserError to zope.app.zapi.

=== Zope3/src/zope/app/interfaces/zapi.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/interfaces/zapi.py:1.7	Thu Jun 12 05:33:47 2003
+++ Zope3/src/zope/app/interfaces/zapi.py	Thu Jun 26 22:50:11 2003
@@ -37,3 +37,12 @@
         This is the name the object is stored under in the container
         it was accessed in.  If the name is unknown, None is returned.
         """
+
+    def UserError(*args):
+        """Return an error message to a user.
+
+        The error is an exception to be raised.
+
+        The given args will be converted to strings and displayed in
+        the message shown the user.
+        """