Exception: Mongoid::Errors::UnsupportedVersion

Inherits:
MongoidError show all
Defined in:
lib/mongoid/errors/unsupported_version.rb

Overview

Raised when the database version is not supported by Mongoid.

Examples:

Create the error.

UnsupportedVersion.new(Mongo::ServerVersion.new("1.3.1"))

Constant Summary

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Method Summary collapse

Methods inherited from MongoidError

#translate

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