MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / NetworkTimeout

Class NetworkTimeout

pymongo/errors.py:111–122  ·  view source on GitHub ↗

An operation on an open connection exceeded socketTimeoutMS. The remaining connections in the pool stay open. In the case of a write operation, you cannot know whether it succeeded or failed. Subclass of :exc:`~pymongo.errors.AutoReconnect`.

Source from the content-addressed store, hash-verified

109
110
111class NetworkTimeout(AutoReconnect):
112 """An operation on an open connection exceeded socketTimeoutMS.
113
114 The remaining connections in the pool stay open. In the case of a write
115 operation, you cannot know whether it succeeded or failed.
116
117 Subclass of :exc:`~pymongo.errors.AutoReconnect`.
118 """
119
120 @property
121 def timeout(self) -> bool:
122 return True
123
124
125def _format_detailed_error(

Callers 7

got_app_errorFunction · 0.90
mock_helloMethod · 0.90
got_app_errorFunction · 0.90
mock_helloMethod · 0.90
_make_timeout_errorFunction · 0.90
_make_timeout_errorFunction · 0.90

Calls

no outgoing calls

Tested by 2

got_app_errorFunction · 0.72
got_app_errorFunction · 0.72