vendor/CMF/1.6.3/CMFCore

view exceptions.py @ 2:4c712d7bd1d7

Added tag 1.6.3 for changeset 1babb9d61518
author Georges Racinet on purity.racinet.fr <georges@racinet.fr>
date Fri, 09 Sep 2011 12:44:00 +0200
parents
children
line source
1 ##############################################################################
2 #
3 # Copyright (c) 2003 Zope Corporation and Contributors. All Rights Reserved.
4 #
5 # This software is subject to the provisions of the Zope Public License,
6 # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
10 # FOR A PARTICULAR PURPOSE.
11 #
12 ##############################################################################
13 """ CMFCore product exceptions.
15 $Id$
16 """
18 from AccessControl import ModuleSecurityInfo
19 from AccessControl import Unauthorized as AccessControl_Unauthorized
20 from OFS.CopySupport import CopyError
21 from webdav.Lockable import ResourceLockedError
22 from zExceptions import BadRequest
23 from zExceptions import NotFound
24 from zExceptions import Unauthorized as zExceptions_Unauthorized
27 security = ModuleSecurityInfo('Products.CMFCore.exceptions')
29 # Use AccessControl_Unauthorized to raise Unauthorized errors and
30 # zExceptions_Unauthorized to catch them all.
32 security.declarePublic('AccessControl_Unauthorized')
33 security.declarePublic('BadRequest')
34 security.declarePublic('CopyError')
35 security.declarePublic('NotFound')
36 security.declarePublic('ResourceLockedError')
37 security.declarePublic('zExceptions_Unauthorized')
40 security.declarePublic('SkinPathError')
41 class SkinPathError(Exception):
42 """ Invalid skin path error.
43 """