00001 #!/usr/bin/env python 00002 # -*- coding: UTF-8 -*- 00003 # ---------------------- 00004 # Name: giantbomb_exceptions - Custom exceptions used or raised by giantbomb_api 00005 # Python Script 00006 # Author: R.D. Vaughan 00007 # Purpose: Custom exceptions used or raised by giantbomb_api 00008 # 00009 # License:Creative Commons GNU GPL v2 00010 # (http://creativecommons.org/licenses/GPL/2.0/) 00011 #------------------------------------- 00012 __title__ ="giantbomb_exceptions - Custom exceptions used or raised by giantbomb_api"; 00013 __author__="R.D. Vaughan" 00014 __version__="v0.1.0" 00015 # 0.1.0 Initial development 00016 00017 __all__ = ["GiantBombBaseError", "GiantBombHttpError", "GiantBombXmlError", "GiantBombGameNotFound", ] 00018 00019 # Start of code used to access api.giantbomb.com api 00020 class GiantBombBaseError(Exception): 00021 pass 00022 00023 class GiantBombHttpError(GiantBombBaseError): 00024 def __repr__(self): # Display the type of error 00025 return None 00026 # end __repr__ 00027 00028 class GiantBombXmlError(GiantBombBaseError): 00029 def __repr__(self): # Display the type of error 00030 return None 00031 # end __repr__ 00032 00033 class GiantBombGameNotFound(GiantBombBaseError): 00034 def __repr__(self): 00035 return None 00036 # end __repr__
1.6.3