00001 #!/usr/bin/env python 00002 # -*- coding: UTF-8 -*- 00003 # ---------------------- 00004 # Name: common_exceptions - Custom exceptions used or raised by WebCgi_api 00005 # Python Script 00006 # Author: R.D. Vaughan 00007 # Purpose: Custom exceptions used or raised by common_api 00008 # 00009 # License:Creative Commons GNU GPL v2 00010 # (http://creativecommons.org/licenses/GPL/2.0/) 00011 #------------------------------------- 00012 __title__ ="common_exceptions - Custom exceptions used or raised by common_api.py"; 00013 __author__="R.D. Vaughan" 00014 __version__="v0.1.2" 00015 # 0.1.0 Initial development 00016 # 0.1.1 Changes due to abanding the EMML Engine/Tomcat server and the addition of the common function class 00017 # 0.1.2 Changed naming convention to WebCgi 00018 00019 __all__ = ["WebCgiUrlError", "WebCgiHttpError", "WebCgiRssError", "WebCgiVideoNotFound", "WebCgiInvalidSearchType", "WebCgiXmlError", "WebCgiVideoDetailError", "WebCgiCategoryNotFound", ] 00020 00021 class WebCgiBaseError(Exception): 00022 pass 00023 00024 class WebCgiUrlError(WebCgiBaseError): 00025 def __repr__(self): # Display the type of error 00026 return None 00027 # end __repr__ 00028 00029 class WebCgiHttpError(WebCgiBaseError): 00030 def __repr__(self): # Display the type of error 00031 return None 00032 # end __repr__ 00033 00034 class WebCgiRssError(WebCgiBaseError): 00035 def __repr__(self): 00036 return None 00037 # end __repr__ 00038 00039 class WebCgiVideoNotFound(WebCgiBaseError): 00040 def __repr__(self): 00041 return None 00042 # end __repr__ 00043 00044 class WebCgiInvalidSearchType(WebCgiBaseError): 00045 def __repr__(self): 00046 return None 00047 # end __repr__ 00048 00049 class WebCgiXmlError(WebCgiBaseError): 00050 def __repr__(self): 00051 return None 00052 # end __repr__
1.6.3