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.
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
#response ⇒ Object (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 |