Sha256: 5411572dcc2b5cf32ed5e3d0ca760b51c54fba8c4128872ced1fbbc60b24ad8b

Contents?: true

Size: 618 Bytes

Versions: 2

Compression:

Stored size: 618 Bytes

Contents

# frozen_string_literal: true

module Pursuit
  # Raised when an aggregate modifier cannot be found.
  #
  class AggregateModifierNotFound < QueryError
    # @return [String] The aggregate modifier which does not map to an aggregate function.
    #
    attr_reader :aggregate_modifier

    # Creates a new error instance.
    #
    # @param aggregate_modifier [Symbol] The aggregate modifier which does not map to an aggregate function.
    #
    def initialize(aggregate_modifier)
      @aggregate_modifier = aggregate_modifier
      super("#{aggregate_modifier} is not a valid 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_not_found.rb
pursuit-1.0.1 lib/pursuit/aggregate_modifier_not_found.rb