Class: Mongo::Error::SnapshotSessionInvalidServerVersion

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

Overview

Exception raised if an operation using a snapshot session is directed to a pre-5.0 server.

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#initializeSnapshotSessionInvalidServerVersion

Instantiate the new exception.

Since:

  • 2.0.0



23
24
25
# File 'lib/mongo/error/snapshot_session_invalid_server_version.rb', line 23

def initialize
  super('Snapshot reads require MongoDB 5.0 or later')
end