Exception: Mongo::Error::InvalidSession

Inherits:
Mongo::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

Constant Summary

Constants inherited from Mongo::Error

BAD_VALUE, CODE, CURSOR_NOT_FOUND, ERR, ERRMSG, ERROR, TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_ERROR, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS

Instance Method Summary collapse

Methods inherited from Mongo::Error

#change_stream_resumable?, #label?, #labels

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



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

def initialize(message)
  super(message)
end