Exception: ElasticsearchRecord::ResponseResultError
- Inherits:
-
ElasticsearchRecordError
- Object
- StandardError
- ElasticsearchRecordError
- ElasticsearchRecord::ResponseResultError
- Defined in:
- lib/elasticsearch_record/errors.rb
Instance Method Summary collapse
-
#initialize(expected, result) ⇒ ResponseResultError
constructor
A new instance of ResponseResultError.
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 |