MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / _ErrorContext

Class _ErrorContext

pymongo/asynchronous/topology.py:1103–1118  ·  view source on GitHub ↗

An error with context for SDAM error handling.

Source from the content-addressed store, hash-verified

1101
1102
1103class _ErrorContext:
1104 """An error with context for SDAM error handling."""
1105
1106 def __init__(
1107 self,
1108 error: BaseException,
1109 max_wire_version: int,
1110 sock_generation: int,
1111 completed_handshake: bool,
1112 service_id: Optional[ObjectId],
1113 ):
1114 self.error = error
1115 self.max_wire_version = max_wire_version
1116 self.sock_generation = sock_generation
1117 self.completed_handshake = completed_handshake
1118 self.service_id = service_id
1119
1120
1121def _is_stale_error_topology_version(

Callers 2

handleMethod · 0.90
update_poolMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected