Exception: Mack::Errors::UnsuccessfulRenderUrl
- Inherits:
-
StandardError
- Object
- StandardError
- Mack::Errors::UnsuccessfulRenderUrl
- Defined in:
- lib/errors/errors.rb
Overview
Potentially raised if a render(:url => “.…”) is a status other than 200. This is only raised if :raise_exception is passed in as true to the render options.
Instance Method Summary collapse
-
#initialize(uri, response) ⇒ UnsuccessfulRenderUrl
constructor
Takes the uri trying to be rendered the Net::HTTP response object.
Constructor Details
#initialize(uri, response) ⇒ UnsuccessfulRenderUrl
Takes the uri trying to be rendered the Net::HTTP response object.
93 94 95 |
# File 'lib/errors/errors.rb', line 93 def initialize(uri, response) super("URI: #{uri}; status: #{response.code}; body: #{response.body}") end |