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

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.



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

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.



15
16
17
# File 'lib/rom/elasticsearch/errors.rb', line 15

def query
  @query
end