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