(self)
| 297 | |
| 298 | @property |
| 299 | def timeout(self) -> bool: |
| 300 | # Check the last writeConcernError and last writeError to determine if this |
| 301 | # BulkWriteError was caused by a timeout. |
| 302 | wces = self.details.get("writeConcernErrors", []) |
| 303 | if wces and _wtimeout_error(wces[-1]): |
| 304 | return True |
| 305 | |
| 306 | werrs = self.details.get("writeErrors", []) |
| 307 | if werrs and werrs[-1].get("code") == 50: |
| 308 | return True |
| 309 | return False |
| 310 | |
| 311 | |
| 312 | class ClientBulkWriteException(OperationFailure): |
nothing calls this directly
no test coverage detected