Module Mongo::Error::SdamErrorDetection
In: lib/mongo/error/sdam_error_detection.rb

@note Although not_master? and node_recovering? methods of this module

  are part of the public API, the fact that these methods are defined on
  this module and not on the classes which include this module is not
  part of the public API.

@api semipublic

Methods

Constants

NOT_MASTER_CODES = [10107, 13435].freeze   @api private
NODE_RECOVERING_CODES = [11600, 11602, 13436, 189, 91].freeze   @api private

Public Instance methods

Whether the error is a "node is recovering" error, or one of its variants.

See github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#not-master-and-node-is-recovering.

@return [ true | false ] Whether the error is a node is recovering.

@since 2.8.0

Whether the error is a "not master" error, or one of its variants.

See github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#not-master-and-node-is-recovering.

@return [ true | false ] Whether the error is a not master.

@since 2.8.0

[Validate]