Exception: BentoSearch::EdsEngine::EdsCommException
- Inherits:
-
FetchError
- Object
- StandardError
- BentoSearch::Error
- FetchError
- BentoSearch::EdsEngine::EdsCommException
- 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
-
#http_body ⇒ Object
Returns the value of attribute http_body.
-
#http_status ⇒ Object
Returns the value of attribute http_status.
Instance Method Summary collapse
-
#initialize(message, status = nil, body = nil) ⇒ EdsCommException
constructor
A new instance of EdsCommException.
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(, status = nil, body = nil) super() self.http_status = status self.http_body = body end |
Instance Attribute Details
#http_body ⇒ Object
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_status ⇒ Object
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 |