Exception: Mongoid::Errors::NoClientHosts
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::NoClientHosts
- Defined in:
- lib/mongoid/errors/no_client_hosts.rb
Overview
This error is raised when a client is configured without hosts.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(name, config) ⇒ NoClientHosts
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(name, config) ⇒ NoClientHosts
Create the new error.
17 18 19 20 21 22 23 24 |
# File 'lib/mongoid/errors/no_client_hosts.rb', line 17 def initialize(name, config) super( ( "no_client_hosts", { name: name, config: config } ) ) end |