Sha256: 3730b2edfc86dc834192eaa8f703731a89d0be1c90da38a1d683699836239627
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
# frozen_string_literal: true module Pursuit # Raised when an attribute that must be used with an aggregate modifier is used without one. # class AggregateModifierRequired < QueryError # @return [Symbol] The name of the attribute which must be used with an aggregate modifier. # attr_reader :attribute # Creates a new error instance. # # @param attribute [Symbol] The name of the attribute which must be used with an aggregate modifier. # def initialize(attribute) @attribute = attribute super("'#{attribute}' must be used with an aggregate modifier") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pursuit-1.1.0 | lib/pursuit/aggregate_modifier_required.rb |
pursuit-1.0.1 | lib/pursuit/aggregate_modifier_required.rb |