Class: Mongo::Error::SessionNotMaterialized

Inherits:
InvalidSession show all
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

Instance Method Summary collapse

Constructor Details

#initializeSessionNotMaterialized

Returns a new instance of SessionNotMaterialized.

Since:

  • 2.0.0



22
23
24
# 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