Exception: BentoSearch::EdsEngine::EdsCommException

Inherits:
FetchError show all
Defined in:
app/search_engines/bento_search/eds_engine.rb

Overview

an exception talking to EDS api. there’s a short reason in #message, but also possibly an http_status and http_body copied from error EDS response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status = nil, body = nil) ⇒ EdsCommException

Returns a new instance of EdsCommException.



648
649
650
651
652
# File 'app/search_engines/bento_search/eds_engine.rb', line 648

def initialize(message, status = nil, body = nil)
  super(message)
  self.http_status = status
  self.http_body = body
end

Instance Attribute Details

#http_bodyObject

Returns the value of attribute http_body.



647
648
649
# File 'app/search_engines/bento_search/eds_engine.rb', line 647

def http_body
  @http_body
end

#http_statusObject

Returns the value of attribute http_status.



647
648
649
# File 'app/search_engines/bento_search/eds_engine.rb', line 647

def http_status
  @http_status
end