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