Exception: Mongoid::Errors::NoDefaultClient
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::NoDefaultClient
- Defined in:
- lib/mongoid/errors/no_default_client.rb
Overview
This error is raised when a default client is not defined.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(keys) ⇒ NoDefaultClient
constructor
Create the new error with the defined client names.
Methods inherited from MongoidError
Constructor Details
#initialize(keys) ⇒ NoDefaultClient
Create the new error with the defined client names.
16 17 18 19 20 |
# File 'lib/mongoid/errors/no_default_client.rb', line 16 def initialize(keys) super( ("no_default_client", { keys: keys.join(", ") }) ) end |