Sha256: 469836a6ec272e66a0991254d390275be3927f00aa0b423d9a8bc5726ebe61ed

Contents?: true

Size: 427 Bytes

Versions: 24

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module Mongoid
  module Errors

    # This error is raised when a method on Criteria is given a nil argument.
    class CriteriaArgumentRequired < MongoidError

      # Creates the new exception instance.
      #
      # @api private
      def initialize(query_method)
        super(compose_message("criteria_argument_required",
          query_method: query_method))
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
mongoid-8.1.7 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.1.6 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.0.8 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.1.5 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.1.4 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.0.7 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.1.3 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.1.2 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.0.6 lib/mongoid/errors/criteria_argument_required.rb
mongoid-7.5.4 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.1.1 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.0.5 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.1.0 lib/mongoid/errors/criteria_argument_required.rb
mongoid-7.5.3 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.0.4 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.0.3 lib/mongoid/errors/criteria_argument_required.rb
mongoid-7.5.2 lib/mongoid/errors/criteria_argument_required.rb
mongoid-8.0.2 lib/mongoid/errors/criteria_argument_required.rb
mongoid-7.5.1 lib/mongoid/errors/criteria_argument_required.rb
mongoid-7.4.3 lib/mongoid/errors/criteria_argument_required.rb