Class Mongo::Error::NoServerAvailable
In: lib/mongo/error/no_server_available.rb
Parent: Error

Raised if there are no servers available matching the preference.

@since 2.0.0

Methods

new  

Public Class methods

Instantiate the new exception.

@example Instantiate the exception.

  Mongo::Error::NoServerAvailable.new(server_selector)

@param [ Hash ] server_selector The server preference that could not be

  satisfied.

@param [ Cluster ] cluster The cluster that server selection was

  performed on. (added in 2.7.0)

@since 2.0.0

[Validate]