MongoNotPrimaryException (original) (raw)


public class MongoNotPrimaryException
extends MongoCommandException
An exception indicating that the server is a member of a replica set but is not the primary, and therefore refused to execute either a write operation or a read operation that required a primary. This can happen during a replica set election.
Since:
3.0
See Also:
Serialized Form