MythTV  0.26-pre
mtv_exceptions.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: UTF-8 -*-
00003 # ----------------------
00004 # Name: mtv_exceptions - Custom exceptions used or raised by mtv_api
00005 # Python Script
00006 # Author:  R.D. Vaughan
00007 # Purpose:  Custom exceptions used or raised by mtv_api
00008 #
00009 # License:Creative Commons GNU GPL v2
00010 # (http://creativecommons.org/licenses/GPL/2.0/)
00011 #-------------------------------------
00012 __title__ ="mtv_exceptions - Custom exceptions used or raised by mtv_api";
00013 __author__="R.D. Vaughan"
00014 __version__="v0.2.0"
00015 # 0.1.0 Initial development
00016 # 0.2.0 Public release
00017 
00018 __all__ = ["MtvUrlError", "MtvHttpError", "MtvRssError", "MtvVideoNotFound", "MtvInvalidSearchType", "MtvXmlError", "MtvVideoDetailError", ]
00019 
00020 class mtvBaseError(Exception):
00021     pass
00022 
00023 class MtvUrlError(mtvBaseError):
00024     def __repr__(self):    # Display the type of error
00025         return None
00026     # end __repr__
00027 
00028 class MtvHttpError(mtvBaseError):
00029     def __repr__(self):    # Display the type of error
00030         return None
00031     # end __repr__
00032 
00033 class MtvRssError(mtvBaseError):
00034     def __repr__(self):
00035         return None
00036     # end __repr__
00037 
00038 class MtvVideoNotFound(mtvBaseError):
00039     def __repr__(self):
00040         return None
00041     # end __repr__
00042 
00043 class MtvInvalidSearchType(mtvBaseError):
00044     def __repr__(self):
00045         return None
00046     # end __repr__
00047 
00048 class MtvXmlError(mtvBaseError):
00049     def __repr__(self):
00050         return None
00051     # end __repr__
00052 
00053 class MtvVideoDetailError(mtvBaseError):
00054     def __repr__(self):
00055         return None
00056     # end __repr__
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends