Sha256: a850263acd093ba641b3f3054dfffc1da68820a6970bd8c9e893654e65f7463b

Contents?: true

Size: 485 Bytes

Versions: 92

Compression:

Stored size: 485 Bytes

Contents

# encoding: utf-8
module Mongoid
  module Errors

    # Used when attempting to get embedded paths with incorrect root path set.
    class InvalidPath < MongoidError

      # Create the new error.
      #
      # @example Create the error.
      #   InvalidPath.new(Address)
      #
      # @param [ Class ] klass The document class.
      #
      # @since 3.0.14
      def initialize(klass)
        super(compose_message("invalid_path", { klass: klass }))
      end
    end
  end
end

Version data entries

92 entries across 87 versions & 7 rubygems

Version Path
mongoid-7.0.13 lib/mongoid/errors/invalid_path.rb
mongoid-7.0.12 lib/mongoid/errors/invalid_path.rb
mongoid-6.4.8 lib/mongoid/errors/invalid_path.rb
mongoid-7.0.11 lib/mongoid/errors/invalid_path.rb
mongoid-7.0.10 lib/mongoid/errors/invalid_path.rb
mongoid-6.4.7 lib/mongoid/errors/invalid_path.rb
mongoid-6.4.5 lib/mongoid/errors/invalid_path.rb
mongoid-7.0.8 lib/mongoid/errors/invalid_path.rb
mongoid-7.0.7 lib/mongoid/errors/invalid_path.rb
mongoid-7.0.6 lib/mongoid/errors/invalid_path.rb
mongoid-5.4.1 lib/mongoid/errors/invalid_path.rb
mongoid-7.0.5 lib/mongoid/errors/invalid_path.rb
mongoid-7.0.4 lib/mongoid/errors/invalid_path.rb
mongoid-6.4.4 lib/mongoid/errors/invalid_path.rb
mongoid-7.0.3 lib/mongoid/errors/invalid_path.rb
mongoid-6.4.2 lib/mongoid/errors/invalid_path.rb
mongoid-7.0.2 lib/mongoid/errors/invalid_path.rb
mongoid-7.0.1 lib/mongoid/errors/invalid_path.rb
mongoid-6.4.1 lib/mongoid/errors/invalid_path.rb
mongoid-5.4.0 lib/mongoid/errors/invalid_path.rb