Class: Mongo::Error::InvalidSession

Inherits:
Error
  • Object
show all
Defined in:
lib/mongo/error/invalid_session.rb

Overview

This exception is raised when a session is attempted to be used and it is invalid.

Since:

  • 2.5.0

Direct Known Subclasses

SessionNotMaterialized, SessionsNotSupported

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ InvalidSession

Create the new exception.

Examples:

Create the new exception.

InvalidSession.new(message)

Parameters:

  • message (String)

    The error message.

Since:

  • 2.5.0



32
33
34
# File 'lib/mongo/error/invalid_session.rb', line 32

def initialize(message)
  super
end