Exception: Traject::SolrJsonWriter::BadHttpResponse

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/traject/solr_json_writer.rb

Overview

Adapted from HTTPClient::BadResponseError. It's got a #response accessor that will give you the HTTPClient Response object that had a bad status, although relying on that would tie you to our HTTPClient implementation that maybe should be considered an implementation detail, so I dunno.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, response = nil) ⇒ BadHttpResponse

:nodoc:



433
434
435
436
# File 'lib/traject/solr_json_writer.rb', line 433

def initialize(msg, response = nil) # :nodoc:
  super(msg)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

HTTP::Message:: a response



431
432
433
# File 'lib/traject/solr_json_writer.rb', line 431

def response
  @response
end