[Zope3-checkins] CVS: Zope3/src/zope/app/exception - __init__.py:1.1 interfaces.py:1.1

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Mar 13 23:44:52 EST 2004


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

Added Files:
	__init__.py interfaces.py 
Log Message:


Move exception views and interfaces to their own package zope.app.exception.




=== Added File Zope3/src/zope/app/exception/__init__.py ===
# Import this!


=== Added File Zope3/src/zope/app/exception/interfaces.py ===
##############################################################################
# Copyright (c) 2003 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.
##############################################################################
"""General exceptions

$Id: interfaces.py,v 1.1 2004/03/14 04:44:51 srichter Exp $
"""

from zope.interface import Interface, implements

class IUserError(Interface):
    """User error exceptions
    """

class UserError(Exception):
    """User errors

    These exceptions should generally be displayed to users unless
    they are handled.
    """
    implements(IUserError)




More information about the Zope3-Checkins mailing list