Exception: Mongoid::Errors::UnsupportedVersion
- Defined in:
- lib/mongoid/errors.rb
Overview
Raised when the database version is not supported by Mongoid.
Example:
UnsupportedVersion.new(Mongo::ServerVersion.new("1.3.1"))
Instance Method Summary collapse
-
#initialize(version) ⇒ UnsupportedVersion
constructor
A new instance of UnsupportedVersion.
- #message ⇒ Object
Constructor Details
#initialize(version) ⇒ UnsupportedVersion
Returns a new instance of UnsupportedVersion.
50 51 52 |
# File 'lib/mongoid/errors.rb', line 50 def initialize(version) @version = version end |
Instance Method Details
#message ⇒ Object
53 54 55 |
# File 'lib/mongoid/errors.rb', line 53 def "MongoDB #{@version} not supported, please upgrade to #{Mongoid::MONGODB_VERSION}" end |