Class: Mongo::Error::ServerNotUsable
- Inherits:
-
Error
- Object
- Error
- Mongo::Error::ServerNotUsable
- Defined in:
- lib/mongo/error/server_not_usable.rb
Overview
Exception raised if an unknown server is attempted to be used for an operation.
Instance Method Summary collapse
-
#initialize(address) ⇒ ServerNotUsable
constructor
private
Instantiate the new exception.
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.
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 |