Exception: ReactOnRailsPro::RendererHttpClient::HTTPError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ HTTPError

Returns a new instance of HTTPError.



24
25
26
27
# File 'lib/react_on_rails_pro/renderer_http_client.rb', line 24

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



22
23
24
# File 'lib/react_on_rails_pro/renderer_http_client.rb', line 22

def response
  @response
end