Class: Mongo::Error::SessionNotMaterialized
- Inherits:
-
InvalidSession
- Object
- Error
- InvalidSession
- Mongo::Error::SessionNotMaterialized
- 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.
Instance Method Summary collapse
-
#initialize ⇒ SessionNotMaterialized
constructor
A new instance of SessionNotMaterialized.
Constructor Details
#initialize ⇒ SessionNotMaterialized
Returns a new instance of SessionNotMaterialized.
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 |