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