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

Class WTimeoutError

pymongo/errors.py:260–272  ·  view source on GitHub ↗

Raised when a database operation times out (i.e. wtimeout expires) before replication completes. With newer versions of MongoDB the `details` attribute may include write concern fields like 'n', 'updatedExisting', or 'writtenTo'. .. versionadded:: 2.7

Source from the content-addressed store, hash-verified

258
259
260class WTimeoutError(WriteConcernError):
261 """Raised when a database operation times out (i.e. wtimeout expires)
262 before replication completes.
263
264 With newer versions of MongoDB the `details` attribute may include
265 write concern fields like 'n', 'updatedExisting', or 'writtenTo'.
266
267 .. versionadded:: 2.7
268 """
269
270 @property
271 def timeout(self) -> bool:
272 return True
273
274
275class DuplicateKeyError(WriteError):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected