MythTV  0.26-pre
vimeo_exceptions.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: UTF-8 -*-
00003 # ----------------------
00004 # Name: vimeo_exceptions - Custom exceptions used or raised by vimeo_api
00005 # Python Script
00006 # Author:  R.D. Vaughan
00007 # Purpose:  Custom exceptions used or raised by vimeo_api
00008 #
00009 # License:Creative Commons GNU GPL v2
00010 # (http://creativecommons.org/licenses/GPL/2.0/)
00011 #-------------------------------------
00012 __title__ ="vimeo_exceptions - Custom exceptions used or raised by vimeo_api";
00013 __author__="R.D. Vaughan"
00014 __version__="v0.2.0"
00015 # 0.1.0 Initial development
00016 # 0.2.0 Publix release
00017 
00018 __all__ = ["VimeoUrlError", "VimeoHttpError", "VimeoResponseError", "VimeoVideoNotFound", "VimeoRequestTokenError", "VimeoAuthorizeTokenError", "VimeoVideosSearchError", "VimeoAllChannelError", ]
00019 
00020 __errmsgs__ = {
00021 '1': u'User not found - The user id or name was either not valid or not provided.',
00022 '96': u'Invalid signature - The api_sig passed was not valid.',
00023 '97': u'Missing signature - A signature was not passed.',
00024 '98': u'Login failed / Invalid auth token - The login details or auth token passed were invalid.',
00025 '100': u'Invalid API Key - The API key passed was not valid.',
00026 '105': u'Service currently unavailable - The requested service is temporarily unavailable.',
00027 '111': u'Format not found - The requested response format was not found.',
00028 '112': u'Method not found - The requested method was not found.',
00029 '301': u'Invalid consumer key - The consumer key passed was not valid.',
00030 '302': u'Invalid / expired token - The oauth_token passed was either not valid or has expired.',
00031 '303': u'Invalid signature - The oauth_signature passed was not valid.',
00032 '304': u'Invalid nonce - The oauth_nonce passed has already been used.',
00033 '305': u'Invalid signature - The oauth_signature passed was not valid.',
00034 '306': u'Unsupported signature method - We do not support that signature method.',
00035 '307': u'Missing required parameter - A required parameter was missing.',
00036 '308': u'Duplicate parameter - An OAuth protocol parameter was duplicated.',
00037 '901': u'Empty search - The search text cannot be empty.',
00038 '999': u'Rate limit exceeded - Please wait a few minutes before trying again.',
00039 }
00040 
00041 # Start of code used to access themoviedb.org api
00042 class VimeoBaseError(Exception):
00043     pass
00044 
00045 class VimeoUrlError(VimeoBaseError):
00046     def __repr__(self):    # Display the type of error
00047         return None
00048     # end __repr__
00049 
00050 class VimeoHttpError(VimeoBaseError):
00051     def __repr__(self):    # Display the type of error
00052         return None
00053     # end __repr__
00054 
00055 class VimeoResponseError(VimeoBaseError):
00056     def __repr__(self):
00057         return None
00058     # end __repr__
00059 
00060 class VimeoVideoNotFound(VimeoBaseError):
00061     def __repr__(self):
00062         return None
00063 
00064 class VimeoRequestTokenError(VimeoBaseError):
00065     def __repr__(self):
00066         return None
00067 
00068 class VimeoAuthorizeTokenError(VimeoBaseError):
00069     def __repr__(self):
00070         return None
00071 
00072 class VimeoVideosSearchError(VimeoBaseError):
00073     def __repr__(self):
00074         return None
00075 
00076 class VimeoAllChannelError(VimeoBaseError):
00077     def __repr__(self):
00078         return None
00079     # end __repr__
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends