Back to index

plone3  3.1.7
exceptions.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2003 Zope Corporation and Contributors. All Rights Reserved.
00004 #
00005 # This software is subject to the provisions of the Zope Public License,
00006 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
00007 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
00008 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00009 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
00010 # FOR A PARTICULAR PURPOSE.
00011 #
00012 ##############################################################################
00013 """ CMFCore product exceptions.
00014 
00015 $Id: exceptions.py 36457 2004-08-12 15:07:44Z jens $
00016 """
00017 
00018 from AccessControl import ModuleSecurityInfo
00019 from AccessControl import Unauthorized as AccessControl_Unauthorized
00020 from OFS.CopySupport import CopyError
00021 from webdav.Lockable import ResourceLockedError
00022 from zExceptions import BadRequest
00023 from zExceptions import NotFound
00024 from zExceptions import Unauthorized as zExceptions_Unauthorized
00025 
00026 
00027 security = ModuleSecurityInfo('Products.CMFCore.exceptions')
00028 
00029 # Use AccessControl_Unauthorized to raise Unauthorized errors and
00030 # zExceptions_Unauthorized to catch them all.
00031 
00032 security.declarePublic('AccessControl_Unauthorized')
00033 security.declarePublic('BadRequest')
00034 security.declarePublic('CopyError')
00035 security.declarePublic('NotFound')
00036 security.declarePublic('ResourceLockedError')
00037 security.declarePublic('zExceptions_Unauthorized')
00038 
00039 
00040 security.declarePublic('SkinPathError')
00041 class SkinPathError(Exception):
00042     """ Invalid skin path error.
00043     """