Exception: Trample::AggregationNotDefinedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/trample/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(search, agg_name) ⇒ AggregationNotDefinedError

Returns a new instance of AggregationNotDefinedError.



17
18
19
20
# File 'lib/trample/errors.rb', line 17

def initialize(search, agg_name)
  @search = search
  @agg_name = agg_name
end

Instance Method Details

#messageObject



22
23
24
# File 'lib/trample/errors.rb', line 22

def message
  "Could not find facet #{@agg_name} in search #{@search.class}"
end