Sha256: 0513debb5dd834bda3627bd9e335355c1c18f1e29fa684c54b0df9261f98983a

Contents?: true

Size: 514 Bytes

Versions: 188

Compression:

Stored size: 514 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc
  module Errors #:nodoc

    # Raised when the database version is not supported by Mongoid.
    #
    # @example Create the error.
    #   UnsupportedVersion.new(Mongo::ServerVersion.new("1.3.1"))
    class UnsupportedVersion < MongoidError
      def initialize(version)
        super(
          translate(
            "unsupported_version",
            { :version => version, :mongo_version => Mongoid::MONGODB_VERSION }
          )
        )
      end
    end
  end
end

Version data entries

188 entries across 96 versions & 4 rubygems

Version Path
mongoid-2.3.5 lib/mongoid/errors/unsupported_version.rb
mongoid-2.4.5 lib/mongoid/errors/unsupported_version.rb
mongoid-2.4.4 lib/mongoid/errors/unsupported_version.rb
mongoid-2.4.3 lib/mongoid/errors/unsupported_version.rb
mongoid-2.4.2 lib/mongoid/errors/unsupported_version.rb
mongoid-2.4.1 lib/mongoid/errors/unsupported_version.rb
mongoid-2.4.0 lib/mongoid/errors/unsupported_version.rb
mongoid-2.2.5 lib/mongoid/errors/unsupported_version.rb
mongoid-2.3.4 lib/mongoid/errors/unsupported_version.rb
mongoid-2.2.4 lib/mongoid/errors/unsupported_version.rb
mongoid-2.3.3 lib/mongoid/errors/unsupported_version.rb
mongoid-2.3.2 lib/mongoid/errors/unsupported_version.rb
mongoid-2.2.3 lib/mongoid/errors/unsupported_version.rb
mongoid-2.3.1 lib/mongoid/errors/unsupported_version.rb
mongoid-2.3.0 lib/mongoid/errors/unsupported_version.rb
mongoid-2.2.2 lib/mongoid/errors/unsupported_version.rb
mongoid-2.2.1 lib/mongoid/errors/unsupported_version.rb
mongoid-2.2.0 lib/mongoid/errors/unsupported_version.rb
mongoid-2.1.9 lib/mongoid/errors/unsupported_version.rb
mongoid-2.1.8 lib/mongoid/errors/unsupported_version.rb