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

Source Code for Module advene.model.cam.exceptions

 1  """ 
 2  I define exceptions used in the Cinelab Application Model. 
 3  """ 
 4   
 5  from warnings import filterwarnings 
 6   
7 -class UnsafeUseWarning(Warning):
8 """ 9 Issued whenever a method inherited from the core model is used in an 10 unsafe way w.r.t. the Cinelab Application Model. This means that the CAM 11 prescribes a specific way to use the method, and provides secialized 12 method complying with those prescriptions. 13 """ 14 pass
15 16 # this class should never be raised from within advene.model.core, 17 # since it is not aware of CAM distinctions 18 filterwarnings("ignore", category=UnsafeUseWarning, 19 module="advene.model.core") 20
21 -class SemanticError(Exception):
22 """ 23 Raised whenever a CAM specific metadata is used in an inconsistent way. 24 """ 25 pass
26