Package com.mongodb

Class MongoNotPrimaryException

  • All Implemented Interfaces:

    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.
    See Also:
    Serialized Form