Package pairtree :: Module storage_exceptions
[hide private]
[frames] | no frames]

Source Code for Module pairtree.storage_exceptions

1 -class ObjectNotFoundException(Exception):
2 """Object not found at the ID specified""" 3 pass
4
5 -class FileNotFoundException(Exception):
6 """File cannot be found at the location requested""" 7 pass
8
9 -class PartNotFoundException(Exception):
10 """Part not found"""
11 - def __init__(self, *p, **kw):
12 self.context = (p, kw)
13 - def __str__(self):
14 print " - Part not found: %s" % self.context
15
16 -class StoreNotFoundException(Exception):
17 """Store not found""" 18 pass
19
20 -class ObjectAlreadyExistsException(Exception):
21 """Object ID already exists""" 22 pass
23
24 -class StoreAlreadyExistsException(Exception):
25 """Store ID already exists""" 26 pass
27
28 -class PathIsNotEmptyException(Exception):
29 """Cannot remove a path that isn't empty without the recursive flag set'""" 30 pass
31
32 -class NotAPairtreeStoreException(Exception):
33 """The directory indicated exists, but doesn't 34 announce itself to be a pairtree store via a 35 'pairtree_version0_1' marker file in the root."""
36
37 -class NotAValidStoreName(Exception):
38 """Invalid name for a store. Must conform to ^[A-z][A-z0-9]* regex"""
39