Class: Mongo::Error::ServerNotUsable

Inherits:
Error
  • Object
show all
Defined in:
lib/mongo/error/server_not_usable.rb

Overview

Exception raised if an unknown server is attempted to be used for an operation.

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#initialize(address) ⇒ ServerNotUsable

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Instantiate the new exception.

Since:

  • 2.0.0



28
29
30
31
# File 'lib/mongo/error/server_not_usable.rb', line 28

def initialize(address)
  @address = address
  super("Attempted to use an unknown server at #{address}")
end