MythTV  master
vimeo_exceptions.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: UTF-8 -*-
3 # ----------------------
4 # Name: vimeo_exceptions - Custom exceptions used or raised by vimeo_api
5 # Python Script
6 # Author: R.D. Vaughan
7 # Purpose: Custom exceptions used or raised by vimeo_api
8 #
9 # License:Creative Commons GNU GPL v2
10 # (http://creativecommons.org/licenses/GPL/2.0/)
11 #-------------------------------------
12 __title__ ="vimeo_exceptions - Custom exceptions used or raised by vimeo_api";
13 __author__="R.D. Vaughan"
14 __version__="v0.2.0"
15 # 0.1.0 Initial development
16 # 0.2.0 Publix release
17 
18 __all__ = ["VimeoUrlError", "VimeoHttpError", "VimeoResponseError", "VimeoVideoNotFound", "VimeoRequestTokenError", "VimeoAuthorizeTokenError", "VimeoVideosSearchError", "VimeoAllChannelError", ]
19 
20 __errmsgs__ = {
21 '1': u'User not found - The user id or name was either not valid or not provided.',
22 '96': u'Invalid signature - The api_sig passed was not valid.',
23 '97': u'Missing signature - A signature was not passed.',
24 '98': u'Login failed / Invalid auth token - The login details or auth token passed were invalid.',
25 '100': u'Invalid API Key - The API key passed was not valid.',
26 '105': u'Service currently unavailable - The requested service is temporarily unavailable.',
27 '111': u'Format not found - The requested response format was not found.',
28 '112': u'Method not found - The requested method was not found.',
29 '301': u'Invalid consumer key - The consumer key passed was not valid.',
30 '302': u'Invalid / expired token - The oauth_token passed was either not valid or has expired.',
31 '303': u'Invalid signature - The oauth_signature passed was not valid.',
32 '304': u'Invalid nonce - The oauth_nonce passed has already been used.',
33 '305': u'Invalid signature - The oauth_signature passed was not valid.',
34 '306': u'Unsupported signature method - We do not support that signature method.',
35 '307': u'Missing required parameter - A required parameter was missing.',
36 '308': u'Duplicate parameter - An OAuth protocol parameter was duplicated.',
37 '901': u'Empty search - The search text cannot be empty.',
38 '999': u'Rate limit exceeded - Please wait a few minutes before trying again.',
39 }
40 
41 # Start of code used to access themoviedb.org api
42 class VimeoBaseError(Exception):
43  pass
44 
46  def __repr__(self): # Display the type of error
47  return None
48  # end __repr__
49 
51  def __repr__(self): # Display the type of error
52  return None
53  # end __repr__
54 
56  def __repr__(self):
57  return None
58  # end __repr__
59 
61  def __repr__(self):
62  return None
63 
65  def __repr__(self):
66  return None
67 
69  def __repr__(self):
70  return None
71 
73  def __repr__(self):
74  return None
75 
77  def __repr__(self):
78  return None
79  # end __repr__
nv_python_libs.vimeo.vimeo_exceptions.VimeoRequestTokenError.__repr__
def __repr__(self)
Definition: vimeo_exceptions.py:65
nv_python_libs.vimeo.vimeo_exceptions.VimeoVideosSearchError.__repr__
def __repr__(self)
Definition: vimeo_exceptions.py:73
nv_python_libs.vimeo.vimeo_exceptions.VimeoAuthorizeTokenError.__repr__
def __repr__(self)
Definition: vimeo_exceptions.py:69
nv_python_libs.vimeo.vimeo_exceptions.VimeoAllChannelError.__repr__
def __repr__(self)
Definition: vimeo_exceptions.py:77
nv_python_libs.vimeo.vimeo_exceptions.VimeoHttpError.__repr__
def __repr__(self)
Definition: vimeo_exceptions.py:51
nv_python_libs.vimeo.vimeo_exceptions.VimeoAllChannelError
Definition: vimeo_exceptions.py:76
nv_python_libs.vimeo.vimeo_exceptions.VimeoVideoNotFound
Definition: vimeo_exceptions.py:60
nv_python_libs.vimeo.vimeo_exceptions.VimeoVideosSearchError
Definition: vimeo_exceptions.py:72
nv_python_libs.vimeo.vimeo_exceptions.VimeoResponseError
Definition: vimeo_exceptions.py:55
nv_python_libs.vimeo.vimeo_exceptions.VimeoBaseError
Definition: vimeo_exceptions.py:42
nv_python_libs.vimeo.vimeo_exceptions.VimeoHttpError
Definition: vimeo_exceptions.py:50
nv_python_libs.vimeo.vimeo_exceptions.VimeoUrlError
Definition: vimeo_exceptions.py:45
nv_python_libs.vimeo.vimeo_exceptions.VimeoRequestTokenError
Definition: vimeo_exceptions.py:64
nv_python_libs.vimeo.vimeo_exceptions.VimeoUrlError.__repr__
def __repr__(self)
Definition: vimeo_exceptions.py:46
nv_python_libs.vimeo.vimeo_exceptions.VimeoResponseError.__repr__
def __repr__(self)
Definition: vimeo_exceptions.py:56
nv_python_libs.vimeo.vimeo_exceptions.VimeoVideoNotFound.__repr__
def __repr__(self)
Definition: vimeo_exceptions.py:61
nv_python_libs.vimeo.vimeo_exceptions.VimeoAuthorizeTokenError
Definition: vimeo_exceptions.py:68