Exception: Mongoid::Errors::InvalidSessionUse
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidSessionUse
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/invalid_session_use.rb
Overview
This error is raised when a session is attempted to be used with a model whose client cannot use it, if
sessions are nested, or if the mongodb deployment doesn't support sessions.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(error_type) ⇒ InvalidSessionUse
constructor
Create the error.
Methods inherited from MongoidError
Constructor Details
#initialize(error_type) ⇒ InvalidSessionUse
Create the error.
21 22 23 |
# File 'build/mongoid-7.3/lib/mongoid/errors/invalid_session_use.rb', line 21 def initialize(error_type) super((error_type.to_s)) end |