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:



40
41
42
43
# File 'lib/react_on_rails_pro/renderer_http_client.rb', line 40

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:



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

def response
  @response
end