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.



39
40
41
42
43
# File 'lib/triannon/error.rb', line 39

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.



38
39
40
# File 'lib/triannon/error.rb', line 38

def search_resp_body
  @search_resp_body
end

#search_resp_statusObject

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