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.
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.
10 11 12 13 14 15 16 17 |
# File 'lib/mongoid/errors/unsupported_version.rb', line 10 def initialize(version) super( translate( "unsupported_version", { :version => version, :mongo_version => Mongoid::MONGODB_VERSION } ) ) end |