class Mongo::Error::SnapshotSessionInvalidServerVersion

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

Public Class Methods

new() click to toggle source

Instantiate the new exception.

Calls superclass method Mongo::Error.new
# File lib/mongo/error/snapshot_session_invalid_server_version.rb, line 25
def initialize
  super("Snapshot reads require MongoDB 5.0 or later")
end