Exception: Mongoid::Errors::InvalidSessionNesting

Inherits:
MongoidError
  • Object
show all
Defined in:
lib/mongoid/errors/invalid_session_nesting.rb

Overview

This error is raised when a session is attempted to be used with a model whose client already has an opened session.

Constant Summary

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Attribute Summary

Attributes inherited from MongoidError

#problem, #resolution, #summary

Instance Method Summary collapse

Methods inherited from MongoidError

#compose_message

Constructor Details

#initializeInvalidSessionNesting

Create the error.



12
13
14
# File 'lib/mongoid/errors/invalid_session_nesting.rb', line 12

def initialize
  super(compose_message('invalid_session_nesting'))
end