class Mongo::Error::ServerNotUsable

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

Public Class Methods

new(address) click to toggle source

Instantiate the new exception.

@api private

Calls superclass method Mongo::Error.new
# File lib/mongo/error/server_not_usable.rb, line 29
def initialize(address)
  @address = address
  super("Attempted to use an unknown server at #{address}")
end