Exception: Mongo::Error::UnsupportedFeatures
- Inherits:
-
Mongo::Error
- Object
- StandardError
- Mongo::Error
- Mongo::Error::UnsupportedFeatures
- Defined in:
- lib/mongo/error/unsupported_features.rb
Overview
Raised when the driver does not support the complete set of server features.
Constant Summary
Constants inherited from Mongo::Error
BAD_VALUE, CODE, ERR, ERRMSG, ERROR, UNKNOWN_ERROR, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS
Instance Method Summary collapse
-
#initialize(server_wire_versions) ⇒ UnsupportedFeatures
constructor
Initialize the exception.
Constructor Details
#initialize(server_wire_versions) ⇒ UnsupportedFeatures
Initialize the exception.
33 34 35 36 37 38 39 40 |
# File 'lib/mongo/error/unsupported_features.rb', line 33 def initialize(server_wire_versions) super( "This version of the driver, #{Mongo::VERSION}, only supports wire " + "protocol versions #{Server::Description::Features::DRIVER_WIRE_VERSIONS} " + "and the server supports wire versions #{server_wire_versions}. " + "Please upgrade the driver to be able to support this server version." ) end |