Exception: Moped::Errors::PotentialReconfiguration
- Inherits:
-
MongoError
- Object
- StandardError
- MongoError
- Moped::Errors::PotentialReconfiguration
- Defined in:
- lib/moped/errors.rb
Overview
Classes of errors that could be caused by a replica set reconfiguration.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from MongoError
#command, #command The command that generated the error., #details, #details The details about the error.
Instance Method Summary collapse
-
#reconfiguring_replica_set? ⇒ Boolean
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.
Methods inherited from MongoError
Constructor Details
This class inherits a constructor from Moped::Errors::MongoError
Instance Method Details
#reconfiguring_replica_set? ⇒ Boolean
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)
105 106 107 |
# File 'lib/moped/errors.rb', line 105 def reconfiguring_replica_set? details["code"] == 13435 || details["err"] == "not master" end |