Exception: Mongoid::Errors::NoSessionConfig
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::NoSessionConfig
- Defined in:
- lib/mongoid/errors/no_session_config.rb
Overview
This error is raised when attempting to create a new session that does not have a named configuration.
Constant Summary
Constants inherited from MongoidError
Instance Method Summary collapse
-
#initialize(name) ⇒ NoSessionConfig
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(name) ⇒ NoSessionConfig
Create the new error.
17 18 19 |
# File 'lib/mongoid/errors/no_session_config.rb', line 17 def initialize(name) super(("no_session_config", { name: name })) end |