123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::ServerNotUsable

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error
Instance Chain:
self, Error
Inherits: Error
  • Object
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

Class Method Summary

Constructor Details

.new(address) ⇒ ServerNotUsable

Instantiate the new exception.

Since:

  • 2.0.0

[ GitHub ]

  
# 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