Exception: ElasticRecord::ConnectionError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code, message) ⇒ ConnectionError

Returns a new instance of ConnectionError.



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

def initialize(status_code, message)
  @status_code = status_code
  super(message)
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



6
7
8
# File 'lib/elastic_record/errors.rb', line 6

def status_code
  @status_code
end