Class: Mongo::Error::SessionsNotSupported

Inherits:
InvalidSession show all
Defined in:
lib/mongo/error/sessions_not_supported.rb

Overview

Note:

The subclassing of InvalidSession only exists for backwards compatibility and will be removed in driver version 3.0.

This exception is raised when a session is attempted to be used and the deployment does not support sessions.

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ SessionsNotSupported

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create the new exception.

Parameters:

  • message (String)

    The error message.

Since:

  • 2.0.0



30
31
32
# File 'lib/mongo/error/sessions_not_supported.rb', line 30

def initialize(message)
  super
end