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.



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

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.



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

def response
  @response
end