Exception: ROM::Elasticsearch::SearchError Private

Inherits:
Error
  • Object
show all
Defined in:
lib/rom/elasticsearch/errors.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Attributes inherited from Error

#wrapped_error

Instance Method Summary collapse

Constructor Details

#initialize(wrapped_error, query) ⇒ SearchError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of SearchError.



19
20
21
22
# File 'lib/rom/elasticsearch/errors.rb', line 19

def initialize(wrapped_error, query)
  super(wrapped_error)
  @query = query
end

Instance Attribute Details

#queryObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
# File 'lib/rom/elasticsearch/errors.rb', line 17

def query
  @query
end