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.



544
545
546
547
548
# File 'app/search_engines/bento_search/eds_engine.rb', line 544

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.



543
544
545
# File 'app/search_engines/bento_search/eds_engine.rb', line 543

def http_body
  @http_body
end

#http_statusObject

Returns the value of attribute http_status.



543
544
545
# File 'app/search_engines/bento_search/eds_engine.rb', line 543

def http_status
  @http_status
end