Exception: ReactOnRailsPro::RendererHttpClient::HTTPError
- Defined in:
- lib/react_on_rails_pro/renderer_http_client.rb,
sig/react_on_rails_pro/renderer_http_client.rbs
Instance Attribute Summary collapse
-
#response ⇒ Response
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.
38 39 40 41 |
# File 'lib/react_on_rails_pro/renderer_http_client.rb', line 38 def initialize(response) @response = response super("HTTP request failed with status #{response.status}") end |
Instance Attribute Details
#response ⇒ Response (readonly)
Returns the value of attribute response.
36 37 38 |
# File 'lib/react_on_rails_pro/renderer_http_client.rb', line 36 def response @response end |