123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::SessionNotMaterialized

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, InvalidSession, Error
Instance Chain:
self, InvalidSession, Error
Inherits: Mongo::Error::InvalidSession
Defined in: lib/mongo/error/session_not_materialized.rb

Overview

This exception is raised when a session is attempted to be used but it was never materialized.

Since:

  • 2.0.0

Class Method Summary

InvalidSession - Inherited

.new

Create the new exception.

Constructor Details

.newSessionNotMaterialized

Since:

  • 2.0.0

[ GitHub ]

  
# File 'lib/mongo/error/session_not_materialized.rb', line 22

def initialize
  super('The session was not materialized and cannot be used. Use start_session or with_session in order to start a session that will be materialized.')
end