Exception: ROM::Elasticsearch::Error Private

Inherits:
StandardError
  • 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.

Direct Known Subclasses

SearchError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(wrapped_error) ⇒ Error

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 Error.



7
8
9
10
# File 'lib/rom/elasticsearch/errors.rb', line 7

def initialize(wrapped_error)
  super(wrapped_error.message)
  @wrapped_error = wrapped_error
end

Instance Attribute Details

#wrapped_errorObject (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.



12
13
14
# File 'lib/rom/elasticsearch/errors.rb', line 12

def wrapped_error
  @wrapped_error
end