Home
last modified time | relevance | path

Searched refs:HttpError (Results 1 – 25 of 34) sorted by relevance

12

/external/python/apitools/apitools/base/py/
Dexceptions_test.py32 err = exceptions.HttpError.FromResponse(_MakeResponse(400))
33 self.assertIsInstance(err, exceptions.HttpError)
38 err = exceptions.HttpError.FromResponse(_MakeResponse(401))
39 self.assertIsInstance(err, exceptions.HttpError)
44 err = exceptions.HttpError.FromResponse(_MakeResponse(403))
45 self.assertIsInstance(err, exceptions.HttpError)
50 err = exceptions.HttpError.FromResponse(_MakeResponse(403))
56 err = exceptions.HttpError.FromResponse(_MakeResponse(404))
57 self.assertIsInstance(err, exceptions.HttpError)
62 err = exceptions.HttpError.FromResponse(_MakeResponse(409))
[all …]
Dexceptions.py50 class HttpError(CommunicationError): class
56 error_message = HttpError._build_message(response, content, url)
57 super(HttpError, self).__init__(error_message)
65 return HttpError._build_message(self.response, self.content, self.url)
91 class HttpBadRequestError(HttpError):
95 class HttpUnauthorizedError(HttpError):
99 class HttpForbiddenError(HttpError):
103 class HttpNotFoundError(HttpError):
107 class HttpConflictError(HttpError):
180 class RetryAfterError(HttpError):
[all …]
Dbatch.py452 raise exceptions.HttpError.FromResponse(response)
501 exception = exceptions.HttpError.FromResponse(response)
Dbatch_test.py149 exceptions.HttpError)
509 exceptions.HttpError, batch_request._Execute, None)
634 self.assertIsInstance(exception, exceptions.HttpError)
/external/python/google-api-python-client/tests/
Dtest_errors.py28 from googleapiclient.errors import HttpError
67 error = HttpError(resp, content, uri="http://example.org")
78 error = HttpError(resp, content)
88 error = HttpError(resp, content, uri="http://example.org")
101 error = HttpError(resp, content)
107 error = HttpError(resp, content)
113 error = HttpError(resp, content)
Dtest_mocks.py29 from googleapiclient.errors import HttpError
159 except HttpError as e:
Dtest_json_model.py35 from googleapiclient.errors import HttpError
188 except HttpError as e:
196 except HttpError as e:
Dtest_http.py46 from googleapiclient.errors import HttpError
442 with self.assertRaises(HttpError):
551 except HttpError:
1006 with self.assertRaises(HttpError):
1029 with self.assertRaises(HttpError):
1050 with self.assertRaises(HttpError):
1071 with self.assertRaises(HttpError):
1097 with self.assertRaises(HttpError):
1621 self.assertRaises(HttpError, request.execute)
Dtest_discovery.py61 from googleapiclient.errors import HttpError
542 except HttpError as e:
560 except HttpError as e:
578 except HttpError as e:
1239 self.assertRaises(HttpError, request.execute, http=http)
1259 self.assertRaises(HttpError, request.execute, http=http)
1320 except HttpError as e:
1448 self.assertRaises(HttpError, request.next_chunk, http=http)
1456 except HttpError as e:
Dtest_protobuf_model.py29 from googleapiclient.errors import HttpError
/external/grpc-grpc/tools/gcp/utils/
Dbig_query_utils.py22 from apiclient.errors import HttpError
51 except HttpError as http_error:
126 except HttpError as http_error:
158 except HttpError as http_error:
177 except HttpError as http_error:
191 except HttpError as http_error:
/external/rust/crates/grpcio-sys/grpc/tools/gcp/utils/
Dbig_query_utils.py24 from apiclient.errors import HttpError
55 except HttpError as http_error:
131 except HttpError as http_error:
162 except HttpError as http_error:
180 except HttpError as http_error:
195 except HttpError as http_error:
/external/protobuf/benchmarks/util/
Dbig_query_utils.py10 from apiclient.errors import HttpError
39 except HttpError as http_error:
114 except HttpError as http_error:
146 except HttpError as http_error:
165 except HttpError as http_error:
179 except HttpError as http_error:
/external/python/google-api-python-client/googleapiclient/
Derrors.py35 class HttpError(Error): class
126 class ResumableUploadError(HttpError):
144 class BatchError(HttpError):
Dmodel.py34 from googleapiclient.errors import HttpError
222 raise HttpError(resp, content)
Dhttp.py62 from googleapiclient.errors import HttpError
740 raise HttpError(resp, content, uri=self._uri)
898 raise HttpError(resp, content, uri=self.uri)
1076 raise HttpError(resp, content, uri=self.uri)
1449 raise HttpError(resp, content, uri=self._batch_uri)
1547 raise HttpError(resp, content, uri=request.uri)
1549 except HttpError as e:
/external/python/google-api-python-client/docs/epy/
Dapi-objects.txt160 googleapiclient.errors.HttpError._get_reason googleapiclient.errors.HttpError-class.html#_get_reason
162 googleapiclient.errors.HttpError googleapiclient.errors.HttpError-class.html
163 googleapiclient.errors.HttpError.__str__ googleapiclient.errors.HttpError-class.html#__str__
164 googleapiclient.errors.HttpError.__repr__ googleapiclient.errors.HttpError-class.html#__repr__
165 googleapiclient.errors.HttpError.__init__ googleapiclient.errors.HttpError-class.html#__init__
166 googleapiclient.errors.HttpError._get_reason googleapiclient.errors.HttpError-class.html#_get_reason
172 googleapiclient.errors.HttpError.__str__ googleapiclient.errors.HttpError-class.html#__str__
173 googleapiclient.errors.HttpError.__repr__ googleapiclient.errors.HttpError-class.html#__repr__
174 googleapiclient.errors.HttpError.__init__ googleapiclient.errors.HttpError-class.html#__init__
175 googleapiclient.errors.HttpError._get_reason googleapiclient.errors.HttpError-class.html#_get_reason
/external/python/google-api-python-client/samples/analytics/
Dhello_analytics_api_v3.py50 from googleapiclient.errors import HttpError
74 except HttpError as error:
Dcore_reporting_v3_reference.py66 from googleapiclient.errors import HttpError
92 except HttpError as error:
Dmanagement_v3_reference.py60 from googleapiclient.errors import HttpError
79 except HttpError as error:
/external/autotest/site_utils/
Dgmail_lib.py127 except apiclient_errors.HttpError as error:
168 if not isinstance(exc, apiclient_errors.HttpError):
/external/python/google-api-python-client/docs/
Dmedia.md52 …googleapiclient.errors.HttpError`](https://googleapis.github.io/google-api-python-client/docs/epy/…
63 except apiclient.errors.HttpError, e:
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/
Drun_xds_tests.py1588 except googleapiclient.errors.HttpError as http_error:
1662 except googleapiclient.errors.HttpError as http_error:
1679 except googleapiclient.errors.HttpError as http_error:
1689 except googleapiclient.errors.HttpError as http_error:
1699 except googleapiclient.errors.HttpError as http_error:
1715 except googleapiclient.errors.HttpError as http_error:
1725 except googleapiclient.errors.HttpError as http_error:
1741 except googleapiclient.errors.HttpError as http_error:
1752 except googleapiclient.errors.HttpError as http_error:
2022 except googleapiclient.errors.HttpError as http_error:
[all …]
/external/python/google-api-python-client/samples/api-python-client-doc/
Dmain.py39 from googleapiclient.errors import HttpError
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/
Dcompute.py211 except googleapiclient.errors.HttpError as error:
305 except googleapiclient.errors.HttpError as error:

12