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