e045fbb65c45d46c70d1fd49b851f53c83e9a5da
[photoprint.git] / exceptions.py
1 """ photoprint exceptions
2
3 $Id: exceptions.py 805 2009-03-19 23:59:45Z pin $
4 $URL: http://svn.luxia.fr/svn/labo/projects/zope/photoprint/trunk/exceptions.py $
5 """
6 from AccessControl import ModuleSecurityInfo
7
8 security = ModuleSecurityInfo('Products.photoprint.exceptions')
9
10 security.declarePublic('SoldOutError')
11 class SoldOutError(Exception):
12 "Item is sold out"
13
14 __allow_access_to_unprotected_subobjects__ = 1
15
16 def __init__(self, n=0):
17 self.n = n
18
19 security.declarePublic('CartLockedError')
20 class CartLockedError(Exception) :
21 "Operation is not permitted due to cart lock"