Error occurred during batch operations.
| 159 | |
| 160 | |
| 161 | class 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 | |
| 179 | class UnexpectedMethodError(Error): |
no outgoing calls
no test coverage detected
searching dependent graphs…