OpenQuizz
Une application de gestion des contenus pédagogiques
ServerSelectionTimeoutError Class Reference
Inheritance diagram for ServerSelectionTimeoutError:
Collaboration diagram for ServerSelectionTimeoutError:

Additional Inherited Members

- Public Member Functions inherited from AutoReconnect
def __init__ (self, message='', errors=None)
 
- Public Member Functions inherited from PyMongoError
def has_error_label (self, label)
 
def __str__ (self)
 
def __unicode__ (self)
 
- Data Fields inherited from AutoReconnect
 errors
 
 details
 

Detailed Description

Thrown when no MongoDB server is available for an operation

If there is no suitable server for an operation PyMongo tries for
``serverSelectionTimeoutMS`` (default 30 seconds) to find one, then
throws this exception. For example, it is thrown after attempting an
operation when PyMongo cannot connect to any server, or if you attempt
an insert into a replica set that has no primary and does not elect one
within the timeout window, or if you attempt to query with a Read
Preference that the replica set cannot satisfy.

The documentation for this class was generated from the following file: