MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / BatchError

Class BatchError

googleapiclient/errors.py:161–176  ·  view source on GitHub ↗

Error occurred during batch operations.

Source from the content-addressed store, hash-verified

159
160
161class BatchError(HttpError):
162 """Error occurred during batch operations."""
163
164 @util.positional(2)
165 def __init__(self, reason, resp=None, content=None):
166 self.resp = resp
167 self.content = content
168 self.reason = reason
169
170 def __repr__(self):
171 if getattr(self.resp, "status", None) is None:
172 return '<BatchError "%s">' % (self.reason)
173 else:
174 return '<BatchError %s "%s">' % (self.resp.status, self.reason)
175
176 __str__ = __repr__
177
178
179class UnexpectedMethodError(Error):

Callers 3

_header_to_idMethod · 0.90
addMethod · 0.90
_executeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…