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

Public Member Functions

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

Additional Inherited Members

- Data Fields inherited from AutoReconnect
 errors
 
 details
 

Detailed Description

The server responded "not master" or "node is recovering".

These errors result from a query, write, or command. The operation failed
because the client thought it was using the primary but the primary has
stepped down, or the client thought it was using a healthy secondary but
the secondary is stale and trying to recover.

The client launches a refresh operation on a background thread, to update
its view of the server as soon as possible after throwing this exception.

Subclass of :exc:`~pymongo.errors.AutoReconnect`.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  message = '',
  errors = None 
)

Reimplemented from AutoReconnect.


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