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.
39 40 41 42 43 |
# File 'lib/triannon/error.rb', line 39 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.
38 39 40 |
# File 'lib/triannon/error.rb', line 38 def search_resp_body @search_resp_body end |
#search_resp_status ⇒ Object
Returns the value of attribute search_resp_status.
38 39 40 |
# File 'lib/triannon/error.rb', line 38 def search_resp_status @search_resp_status end |