Class Moped::Errors::PotentialReconfiguration
In: lib/moped/errors.rb
Parent: MongoError

Classes of errors that could be caused by a replica set reconfiguration.

Methods

Constants

NOT_MASTER = [ 13435, 13436, 10009, 15986, 83 ]   Not master error codes.
CONNECTION_ERRORS_RECONFIGURATION = [ 15988, 10276, 11600, 9001, 13639, 10009, 11002, 7 ]   Error codes received around reconfiguration

Public Instance methods

Is the error due to a namespace not existing?

@example Doest the namespace not exist?

  error.ns_not_exists?

@return [ true, false ] If the namespace was not found.

@since 2.0.0

Is the error due to a namespace not being found?

@example Is the namespace not found?

  error.ns_not_found?

@return [ true, false ] If the namespace was not found.

@since 2.0.0

Replica set reconfigurations can be either in the form of an operation error with code 13435, or with an error message stating the server is not a master. (This encapsulates codes 10054, 10056, 10058)

[Validate]