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

Class _ErrorContext

pymongo/synchronous/topology.py:1101–1116  ·  view source on GitHub ↗

An error with context for SDAM error handling.

Source from the content-addressed store, hash-verified

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

Callers 8

_runMethod · 0.90
got_app_errorFunction · 0.90
test_handle_errorMethod · 0.90
_runMethod · 0.90
got_app_errorFunction · 0.90
handleMethod · 0.90
update_poolMethod · 0.70

Calls

no outgoing calls

Tested by 6

_runMethod · 0.72
got_app_errorFunction · 0.72
test_handle_errorMethod · 0.72
_runMethod · 0.72
got_app_errorFunction · 0.72