|
MythTV
0.26-pre
|
00001 #!/usr/bin/env python 00002 # -*- coding: UTF-8 -*- 00003 # ---------------------- 00004 # Name: dailymotion_exceptions - Custom exceptions used or raised by dailymotion_api 00005 # Python Script 00006 # Author: R.D. Vaughan 00007 # Purpose: Custom exceptions used or raised by dailymotion_api 00008 # 00009 # License:Creative Commons GNU GPL v2 00010 # (http://creativecommons.org/licenses/GPL/2.0/) 00011 #------------------------------------- 00012 __title__ ="dailymotion_exceptions - Custom exceptions used or raised by dailymotion_api"; 00013 __author__="R.D. Vaughan" 00014 __version__="v0.2.0" 00015 # 0.1.0 Initial development 00016 # 0.1.2 Documentation update 00017 # 0.2.0 Public release 00018 00019 __all__ = ["DailymotionUrlError", "DailymotionHttpError", "DailymotionRssError", "DailymotionVideoNotFound", "DailymotionInvalidSearchType", "DailymotionXmlError", "DailymotionVideoDetailError", "DailymotionCategoryNotFound", ] 00020 00021 class DailymotionBaseError(Exception): 00022 pass 00023 00024 class DailymotionUrlError(DailymotionBaseError): 00025 def __repr__(self): # Display the type of error 00026 return None 00027 # end __repr__ 00028 00029 class DailymotionHttpError(DailymotionBaseError): 00030 def __repr__(self): # Display the type of error 00031 return None 00032 # end __repr__ 00033 00034 class DailymotionRssError(DailymotionBaseError): 00035 def __repr__(self): 00036 return None 00037 # end __repr__ 00038 00039 class DailymotionVideoNotFound(DailymotionBaseError): 00040 def __repr__(self): 00041 return None 00042 # end __repr__ 00043 00044 class DailymotionInvalidSearchType(DailymotionBaseError): 00045 def __repr__(self): 00046 return None 00047 # end __repr__ 00048 00049 class DailymotionXmlError(DailymotionBaseError): 00050 def __repr__(self): 00051 return None 00052 # end __repr__ 00053 00054 class DailymotionVideoDetailError(DailymotionBaseError): 00055 def __repr__(self): 00056 return None 00057 # end __repr__ 00058 00059 class DailymotionCategoryNotFound(DailymotionBaseError): 00060 def __repr__(self): 00061 return None 00062 # end __repr__
1.7.6.1