Class: Mongo::Error::SnapshotSessionInvalidServerVersion
- Inherits:
-
Error
- Object
- Error
- Mongo::Error::SnapshotSessionInvalidServerVersion
- 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.
Instance Method Summary collapse
-
#initialize ⇒ SnapshotSessionInvalidServerVersion
constructor
Instantiate the new exception.
Constructor Details
#initialize ⇒ SnapshotSessionInvalidServerVersion
Instantiate the new exception.
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 |