Exceptions raised by PyMongo.
Raised when a connection to the database is lost and an attempt to auto-reconnect will be made.
In order to auto-reconnect you must handle this exception, recognizing that the operation which caused it has not necessarily succeeded. Future operations will attempt to open a new connection to the database (and will continue to raise this exception until the first successful connection is made).
Raised when collection validation fails.
Raised when something is incorrectly configured.
Raised when a connection to the database cannot be made or is lost.
Raised when a safe insert or update fails due to a duplicate key error.
Note
Requires server version >= 1.3.0
New in version 1.4.
Raised when an invalid name is used.
Raised when a client attempts to perform an invalid operation.
Raised when trying to parse an invalid mongodb URI.
New in version 1.5.
Raised when a database operation fails.
New in version 1.8: The code attribute.
Base class for all PyMongo exceptions.
New in version 1.4.
Raised when a database operation times out.
New in version 1.8.
Exception for unsupported options.
New in version 2.0.