00001 #!/usr/bin/env python 00002 # -*- coding: UTF-8 -*- 00003 # ---------------------- 00004 # Name: hulu_exceptions - Custom exceptions used or raised by hulu_api 00005 # Python Script 00006 # Author: R.D. Vaughan 00007 # Purpose: Custom exceptions used or raised by hulu_api 00008 # 00009 # License:Creative Commons GNU GPL v2 00010 # (http://creativecommons.org/licenses/GPL/2.0/) 00011 #------------------------------------- 00012 __title__ ="hulu_exceptions - Custom exceptions used or raised by hulu_api"; 00013 __author__="R.D. Vaughan" 00014 __version__="v0.1.0" 00015 # 0.1.0 Initial development 00016 00017 __all__ = ["HuluUrlError", "HuluHttpError", "HuluRssError", "HuluVideoNotFound", "HuluConfigFileError", "HuluUrlDownloadError"] 00018 00019 class HuluBaseError(Exception): 00020 pass 00021 00022 class HuluUrlError(HuluBaseError): 00023 def __repr__(self): # Display the type of error 00024 return None 00025 # end __repr__ 00026 00027 class HuluHttpError(HuluBaseError): 00028 def __repr__(self): # Display the type of error 00029 return None 00030 # end __repr__ 00031 00032 class HuluRssError(HuluBaseError): 00033 def __repr__(self): 00034 return None 00035 # end __repr__ 00036 00037 class HuluVideoNotFound(HuluBaseError): 00038 def __repr__(self): 00039 return None 00040 # end __repr__ 00041 00042 class HuluConfigFileError(HuluBaseError): 00043 def __repr__(self): 00044 return None 00045 # end __repr__ 00046 00047 class HuluUrlDownloadError(HuluBaseError): 00048 def __repr__(self): 00049 return None 00050 # end __repr__
1.6.3