Exception: Mongoid::Errors::NoDefaultClient
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::NoDefaultClient
- Defined in:
- build/mongoid-7.3/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.
18 19 20 21 22 |
# File 'build/mongoid-7.3/lib/mongoid/errors/no_default_client.rb', line 18 def initialize(keys) super( ("no_default_client", { keys: keys.join(", ") }) ) end |