Package advene :: Package model :: Module exceptions
[hide private]
[frames] | no frames]

Source Code for Module advene.model.exceptions

 1  """ 
 2  I define exceptions used in the model implementation. 
 3  """ 
 4   
5 -class ModelError(Exception):
6 """ 7 Integrity constraints of the Advene model have been violated. 8 """ 9 pass
10
11 -class NoClaimingError(Exception):
12 """Raised whenever no backend nor parser claims a package URL.""" 13 pass
14
15 -class NoSuchElementError(KeyError):
16 """Raised whenever an element cannot be found in a package.""" 17 pass
18
19 -class UnreachableImportError(KeyError):
20 """Raised whenever an element from an unreachable import is sought.""" 21 pass
22
23 -class NoContentHandlerError(Exception):
24 """Raised whenever a content can not be handled (view, query....).""" 25 pass
26
27 -class ContentHandlingError(Exception):
28 """Raised whenever a content handler has an internal error.""" 29 pass
30