/external/python/cpython3/Lib/urllib/ |
D | error.py | 19 class URLError(OSError): class 35 class HTTPError(URLError, urllib.response.addinfourl): 73 class ContentTooShortError(URLError): 76 URLError.__init__(self, message)
|
D | request.py | 102 from urllib.error import URLError, HTTPError, ContentTooShortError 1186 raise URLError("qop '%s' is not supported." % qop) 1266 raise URLError('no host given') 1308 raise URLError('no host given') 1345 raise URLError(err) 1413 raise URLError('unknown url type: %s' % type) 1475 raise URLError("file:// scheme is supported only on localhost") 1516 raise URLError(exp) 1517 raise URLError('file not on local host') 1531 raise URLError('ftp error: no host given') [all …]
|
/external/openscreen/tools/ |
D | curlish.py | 13 from urllib2 import HTTPError, URLError, urlopen 15 from urllib.error import HTTPError, URLError 36 except URLError as e:
|
/external/python/cpython3/Doc/library/ |
D | urllib.error.rst | 15 raised by :mod:`urllib.request`. The base exception class is :exc:`URLError`. 19 .. exception:: URLError 30 :exc:`URLError` has been made a subclass of :exc:`OSError` instead 36 Though being an exception (a subclass of :exc:`URLError`), an
|
/external/python/cpython2/Lib/test/ |
D | test_urllib2net.py | 30 _urlopen_with_retry = _wrap_with_retry_thrice(urllib2.urlopen, urllib2.URLError) 107 None, urllib2.URLError), 119 ('file:///nonsensename/etc/passwd', None, urllib2.URLError), 205 urlopen = _wrap_with_retry_thrice(urlopen, urllib2.URLError) 222 except urllib2.URLError as err:
|
D | test_urllib2_localnet.py | 383 except urllib2.URLError: 509 except urllib2.URLError, f: 556 with self.assertRaises(urllib2.URLError): 568 with self.assertRaises(urllib2.URLError):
|
D | test_urllib2.py | 362 raise urllib2.URLError("blah") 477 from urllib2 import URLError 487 self.assertRaises(URLError, o.open, scheme+"://example.com/") 543 self.assertRaises(urllib2.URLError, o.open, req) 741 self.assertRaises(urllib2.URLError, 767 except (urllib2.URLError, OSError): 806 self.assertRaises(urllib2.URLError, h.do_open, http, req)
|
/external/boringssl/src/util/bot/ |
D | update_clang.py | 63 raise urllib2.URLError("only got %d of %d bytes" % 67 except urllib2.URLError as e: 153 except urllib2.URLError:
|
/external/python/cpython3/Lib/test/ |
D | test_urllib2net.py | 39 urllib.error.URLError) 112 None, urllib.error.URLError), 125 urllib.error.URLError), 218 urlopen = _wrap_with_retry_thrice(urlopen, urllib.error.URLError)
|
D | test_urllib2_localnet.py | 386 except urllib.error.URLError: 537 except urllib.error.URLError as f: 575 with self.assertRaises(urllib.error.URLError) as cm: 580 with self.assertRaises(urllib.error.URLError) as cm: 588 with self.assertRaises(urllib.error.URLError) as cm:
|
/external/python/cpython2/Lib/ |
D | urllib2.py | 164 class URLError(IOError): class 177 class HTTPError(URLError, addinfourl): 1049 raise URLError("qop '%s' is not supported." % qop) 1126 raise URLError('no host given') 1164 raise URLError('no host given') 1198 raise URLError(err) 1266 raise URLError('unknown url type: %s' % type) 1376 raise URLError(msg) 1377 raise URLError('file not on local host') 1385 raise URLError('ftp error: no host given') [all …]
|
/external/python/asn1crypto/dev/ |
D | coverage.py | 23 from urllib2 import URLError 28 from urllib.error import URLError 595 raise URLError("Error %sing %s:\n%s" % (method, url, stderr)) 599 raise URLError("Error %sing %s, response data malformed:\n%s" % (method, url, stdout)) 617 raise URLError("Error %sing %s, no content-type header:\n%s" % (method, url, stdout))
|
/external/autotest/client/common_lib/cros/fake_device_server/client_lib/ |
D | meta.py | 33 except urllib.error.URLError:
|
/external/perfetto/src/trace_processor/python/perfetto/trace_processor/ |
D | shell.py | 43 except error.URLError:
|
/external/python/cpython2/Doc/howto/ |
D | urllib2.rst | 187 *urlopen* raises :exc:`URLError` when it cannot handle a response (though as 191 :exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific case of 194 URLError section in Handling Exceptions 197 Often, URLError is raised because there is no network connection (no route to 206 ... except urllib2.URLError 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 346 except URLError as e: 355 The ``except HTTPError`` *must* come first, otherwise ``except URLError`` 363 from urllib2 import Request, urlopen, URLError [all …]
|
/external/python/cpython3/Doc/howto/ |
D | urllib2.rst | 204 *urlopen* raises :exc:`URLError` when it cannot handle a response (though as 208 :exc:`HTTPError` is the subclass of :exc:`URLError` raised in the specific case of 213 URLError section in Handling Exceptions 216 Often, URLError is raised because there is no network connection (no route to 225 ... except urllib.error.URLError as e: 348 So if you want to be prepared for :exc:`HTTPError` *or* :exc:`URLError` there are two 358 from urllib.error import URLError, HTTPError 365 except URLError as e: 374 The ``except HTTPError`` *must* come first, otherwise ``except URLError`` 383 from urllib.error import URLError [all …]
|
/external/python/dateutil/ |
D | updatezinfo.py | 32 except urllib_error.URLError as e:
|
/external/autotest/site_utils/ |
D | hwid_lib.py | 131 except (urllib2.URLError, urllib2.HTTPError) as e:
|
/external/skia/tools/ |
D | compare_codereview.py | 52 except (urllib2.URLError,): 173 except (urllib2.URLError,):
|
/external/skqp/tools/ |
D | compare_codereview.py | 52 except (urllib2.URLError,): 173 except (urllib2.URLError,):
|
/external/autotest/client/common_lib/ |
D | file_utils.py | 164 except urllib.error.URLError as e:
|
/external/autotest/tko/ |
D | retrieve_logs.cgi | 93 except urllib2.URLError:
|
/external/skia/tools/skqp/ |
D | find_commit_with_best_gold_results.py | 70 except urllib2.URLError:
|
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/ |
D | atrace_from_file_agent.py | 47 except urllib2.URLError:
|
/external/python/cpython3/Lib/test/support/ |
D | socket_helper.py | 232 (isinstance(err, urllib.error.URLError) and
|