Exception: Mongoid::Errors::UnsupportedVersion
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::UnsupportedVersion
- Defined in:
- lib/mongoid/errors/unsupported_version.rb
Overview
Raised when the database version is not supported by Mongoid.
Example:
UnsupportedVersion.new(Mongo::ServerVersion.new("1.3.1"))
Constant Summary
Constants inherited from MongoidError
Instance Method Summary collapse
-
#initialize(version) ⇒ UnsupportedVersion
constructor
A new instance of UnsupportedVersion.
Methods inherited from MongoidError
Constructor Details
#initialize(version) ⇒ UnsupportedVersion
Returns a new instance of UnsupportedVersion.
11 12 13 14 15 16 17 18 |
# File 'lib/mongoid/errors/unsupported_version.rb', line 11 def initialize(version) super( translate( "unsupported_version", { :version => version, :mongo_version => Mongoid::MONGODB_VERSION } ) ) end |