Exception: ElasticsearchRecord::ResponseResultError

Inherits:
ElasticsearchRecordError show all
Defined in:
lib/elasticsearch_record/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(expected, result) ⇒ ResponseResultError

Returns a new instance of ResponseResultError.



9
10
11
# File 'lib/elasticsearch_record/errors.rb', line 9

def initialize(expected, result)
  super("expected response-result failed!\nreturned: '#{result}', but should be '#{expected}'")
end