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

Class ExecutionTimeout

pymongo/errors.py:232–243  ·  view source on GitHub ↗

Raised when a database operation times out, exceeding the $maxTimeMS set in the query or command option. .. note:: Requires server version **>= 2.6.0** .. versionadded:: 2.7

Source from the content-addressed store, hash-verified

230
231
232class ExecutionTimeout(OperationFailure):
233 """Raised when a database operation times out, exceeding the $maxTimeMS
234 set in the query or command option.
235
236 .. note:: Requires server version **>= 2.6.0**
237
238 .. versionadded:: 2.7
239 """
240
241 @property
242 def timeout(self) -> bool:
243 return True
244
245
246class WriteConcernError(OperationFailure):

Callers 6

_check_command_responseFunction · 0.90
raw_responseMethod · 0.90
_make_timeout_errorFunction · 0.90
apply_timeoutMethod · 0.90
_make_timeout_errorFunction · 0.90
apply_timeoutMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected