Exception: Triannon::SearchError

Inherits:
Error
  • Object
show all
Defined in:
lib/triannon/error.rb

Overview

used to keep HTTP response info from Solr

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil, search_resp_status = nil, search_resp_body = nil)
  super(message)
  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_bodyObject

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_statusObject

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