Exception: Triannon::SearchError
- Defined in:
- lib/triannon/error.rb
Overview
used to keep HTTP response info from Solr
Instance Attribute Summary collapse
-
#search_resp_body ⇒ Object
Returns the value of attribute search_resp_body.
-
#search_resp_status ⇒ Object
Returns the value of attribute search_resp_status.
Instance Method Summary collapse
-
#initialize(message = nil, search_resp_status = nil, search_resp_body = nil) ⇒ SearchError
constructor
A new instance of SearchError.
Constructor Details
#initialize(message = nil, search_resp_status = nil, search_resp_body = nil) ⇒ SearchError
Returns a new instance of SearchError.
25 26 27 28 29 |
# File 'lib/triannon/error.rb', line 25 def initialize( = nil, search_resp_status = nil, search_resp_body = nil) super() self.search_resp_status = search_resp_status if search_resp_status self.search_resp_body = search_resp_body if search_resp_body end |
Instance Attribute Details
#search_resp_body ⇒ Object
Returns the value of attribute search_resp_body.
24 25 26 |
# File 'lib/triannon/error.rb', line 24 def search_resp_body @search_resp_body end |
#search_resp_status ⇒ Object
Returns the value of attribute search_resp_status.
24 25 26 |
# File 'lib/triannon/error.rb', line 24 def search_resp_status @search_resp_status end |