Class Mack::Errors::UnsuccessfulRenderUrl
In: lib/mack/errors/errors.rb
Parent: StandardError

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.

Methods

new  

Public Class methods

Takes the uri trying to be rendered the Net::HTTP response object.

[Source]

    # File lib/mack/errors/errors.rb, line 95
95:       def initialize(uri, response)
96:         code = response.code if response.respond_to?(:code)
97:         code = response.status if response.respond_to?(:status)
98:         super("URI: #{uri}; status: #{code}")
99:       end

[Validate]