/external/autotest/client/common_lib/cros/fake_device_server/ |
D | registration_tickets.py | 59 raise server_errors.HTTPError(400, 'Unclaimed ticket') 79 raise server_errors.HTTPError(401, 'Missing Authorization.') 84 raise server_errors.HTTPError(400, 'Malformed Authorization field') 90 raise server_errors.HTTPError(403, 'Authorization requires ' 93 raise server_errors.HTTPError(403, 'Wrong access token.') 133 raise server_errors.HTTPError( 139 raise server_errors.HTTPError( 143 raise server_errors.HTTPError( 146 raise server_errors.HTTPError( 173 server_errors.HTTPError(400, 'Missing id for operation') [all …]
|
D | commands.py | 76 raise server_errors.HTTPError( 80 raise server_errors.HTTPError( 84 raise server_errors.HTTPError( 120 raise server_errors.HTTPError(400, 'Unsupported API') 122 raise server_errors.HTTPError( 128 raise server_errors.HTTPError(401, 'Access denied.') 147 raise server_errors.HTTPError( 159 raise server_errors.HTTPError(400, 'Require JSON body')
|
D | server_errors.py | 10 class HTTPError(cherrypy.HTTPError): class 17 cherrypy.HTTPError.__init__(self, status, message)
|
D | common_util.py | 78 raise server_errors.HTTPError( 82 raise server_errors.HTTPError( 87 raise server_errors.HTTPError(
|
D | resource_delegate.py | 48 raise server_errors.HTTPError(400, 'Invalid data key: %r' % (key,)) 71 raise server_errors.HTTPError(400, 'Invalid data key: %r' % (key,)) 111 raise server_errors.HTTPError(400, "Ticket id doesn't match")
|
D | devices.py | 67 raise server_errors.HTTPError(400, 'Empty device resource.') 71 raise server_errors.HTTPError(400, 'Must specify %s' % key) 136 raise server_errors.HTTPError(400, 'Unsupported operation.') 176 raise server_errors.HTTPError(401, 'Access denied.')
|
D | devices_unittest.py | 51 self.assertRaises(server_errors.HTTPError, 62 self.assertRaises(server_errors.HTTPError, 92 self.assertRaises(server_errors.HTTPError,
|
D | commands_unittest.py | 64 self.assertRaises(server_errors.HTTPError, 70 self.assertRaises(server_errors.HTTPError, 86 self.assertRaises(server_errors.HTTPError,
|
D | fail_control.py | 32 raise server_errors.HTTPError(500, 'Instructed to fail this request') 47 raise server_errors.HTTPError(
|
D | resource_method.py | 38 server_errors.HTTPError(400, 'Missing id for operation') 58 server_errors.HTTPError(400, 'Missing id for operation')
|
D | registration_tickets_unittest.py | 49 self.assertRaises(server_errors.HTTPError, 86 self.assertRaises(server_errors.HTTPError, 127 self.assertRaises(server_errors.HTTPError,
|
D | common_util_unittest.py | 77 self.assertRaises(server_errors.HTTPError, 82 self.assertRaises(server_errors.HTTPError,
|
D | oauth.py | 100 raise server_errors.HTTPError(
|
D | resource_method_unittest.py | 67 self.assertRaises(server_errors.HTTPError,
|
/external/python/cpython2/Lib/test/ |
D | test_robotparser.py | 3 from urllib2 import urlopen, HTTPError 261 except HTTPError as e:
|
/external/python/cpython2/Doc/howto/ |
D | urllib2.rst | 191 :exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific case of 212 HTTPError section in Handling Exceptions 220 urlopen will raise an :exc:`HTTPError`. Typical errors include '404' (page not 225 The :exc:`HTTPError` instance raised will have an integer 'code' attribute, which 308 *and* an error page. You can use the :exc:`HTTPError` instance as a response on the 315 ... except urllib2.HTTPError as e: 330 So if you want to be prepared for :exc:`HTTPError` *or* :exc:`URLError` there are two 339 from urllib2 import Request, urlopen, URLError, HTTPError 343 except HTTPError as e: 355 The ``except HTTPError`` *must* come first, otherwise ``except URLError`` [all …]
|
/external/python/cpython2/Lib/distutils/command/ |
D | upload.py | 7 from urllib2 import urlopen, Request, HTTPError 184 except HTTPError, e:
|
/external/autotest/tko/ |
D | jsonp_fetcher.cgi | 28 except urllib2.HTTPError:
|
/external/autotest/site_utils/ |
D | hwid_lib.py | 63 except (urllib2.URLError, urllib2.HTTPError) as e:
|
/external/googletest/googlemock/scripts/ |
D | upload.py | 115 class ClientLoginError(urllib2.HTTPError): 119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None) 206 except urllib2.HTTPError, e: 231 except urllib2.HTTPError, e: 235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg, 330 except urllib2.HTTPError, e:
|
/external/googletest/googletest/scripts/ |
D | upload.py | 115 class ClientLoginError(urllib2.HTTPError): 119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None) 206 except urllib2.HTTPError, e: 231 except urllib2.HTTPError, e: 235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg, 330 except urllib2.HTTPError, e:
|
/external/v8/testing/gtest/scripts/ |
D | upload.py | 115 class ClientLoginError(urllib2.HTTPError): 119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None) 206 except urllib2.HTTPError, e: 231 except urllib2.HTTPError, e: 235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg, 330 except urllib2.HTTPError, e:
|
/external/google-breakpad/src/testing/scripts/ |
D | upload.py | 115 class ClientLoginError(urllib2.HTTPError): 119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None) 206 except urllib2.HTTPError, e: 231 except urllib2.HTTPError, e: 235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg, 330 except urllib2.HTTPError, e:
|
/external/v8/testing/gmock/scripts/ |
D | upload.py | 115 class ClientLoginError(urllib2.HTTPError): 119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None) 206 except urllib2.HTTPError, e: 231 except urllib2.HTTPError, e: 235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg, 330 except urllib2.HTTPError, e:
|
/external/google-breakpad/src/testing/gtest/scripts/ |
D | upload.py | 115 class ClientLoginError(urllib2.HTTPError): 119 urllib2.HTTPError.__init__(self, url, code, msg, headers, None) 206 except urllib2.HTTPError, e: 231 except urllib2.HTTPError, e: 235 raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg, 330 except urllib2.HTTPError, e:
|