Package flickrapi :: Module exceptions
[hide private]
[frames] | no frames]

Source Code for Module flickrapi.exceptions

 1  '''Exceptions used by the FlickrAPI module.''' 
 2   
 3   
4 -class IllegalArgumentException(ValueError):
5 '''Raised when a method is passed an illegal argument. 6 7 More specific details will be included in the exception message 8 when thrown. 9 '''
10 11
12 -class FlickrError(Exception):
13 '''Raised when a Flickr method fails. 14 15 More specific details will be included in the exception message 16 when thrown. 17 '''
18 19
20 -class CancelUpload(Exception):
21 '''Raise this exception in an upload/replace callback function to 22 abort the upload. 23 '''
24 25
26 -class LockingError(Exception):
27 '''Raised when TokenCache cannot acquire a lock within the timeout 28 period, or when a lock release is attempted when the lock does not 29 belong to this process. 30 '''
31