Exception: ReactOnRailsPro::RendererHttpClient::HTTPError

Inherits:
Error
  • Object
show all
Defined in:
lib/react_on_rails_pro/renderer_http_client.rb,
sig/react_on_rails_pro/renderer_http_client.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ HTTPError

Returns a new instance of HTTPError.

Parameters:



38
39
40
41
# File 'lib/react_on_rails_pro/renderer_http_client.rb', line 38

def initialize(response)
  @response = response
  super("HTTP request failed with status #{response.status}")
end

Instance Attribute Details

#responseResponse (readonly)

Returns the value of attribute response.

Returns:



36
37
38
# File 'lib/react_on_rails_pro/renderer_http_client.rb', line 36

def response
  @response
end