Exception: ReactOnRailsPro::RendererHttpClient::HTTPError
- Defined in:
- lib/react_on_rails_pro/renderer_http_client.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ HTTPError
constructor
A new instance of HTTPError.
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
#response ⇒ Object (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 |