Bugfix : reduce non homogène.
[photoprint.git] / exceptions.py
1 """ photoprint exceptions
2
3
4
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"