class Mongoid::Errors::InvalidSessionUse

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.

@since 6.4.0

Public Class Methods

new(error_type) click to toggle source

Create the error.

@example Create the error.

InvalidSessionUse.new(:invalid_session_use)

@param [ :invalid_sesion_use, :invalid_session_nesting ] error_type The type of session misuse.

@since 6.4.0

Calls superclass method
# File lib/mongoid/errors/invalid_session_use.rb, line 21
def initialize(error_type)
  super(compose_message(error_type.to_s))
end