Exception: Elasticrawl::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/elasticrawl/error.rb

Overview

Base error class extends standard error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response = nil) ⇒ Error

Returns a new instance of Error.



6
7
8
# File 'lib/elasticrawl/error.rb', line 6

def initialize(response = nil)
  @http_response = response
end

Instance Attribute Details

#http_responseObject (readonly)

Returns the value of attribute http_response.



4
5
6
# File 'lib/elasticrawl/error.rb', line 4

def http_response
  @http_response
end