class MingleEvents::HttpError

Attributes

additional_context[R]
requested_location[R]
response[R]

Public Class Methods

new(response, requested_location, additional_context = nil) click to toggle source
Calls superclass method
   # File lib/mingle_events/http_error.rb
 7 def initialize(response, requested_location, additional_context = nil)
 8   super(%{
 9     Unable to retrieve 200 response from URI: <#{requested_location}>!
10     HTTP Code: #{response && response.code}
11     Body: #{response && response.body}
12     #{additional_context.nil? ? "" : additional_context}
13   })
14   @response = response
15   @requested_location = requested_location
16   @additional_context = additional_context
17 end

Public Instance Methods

not_found?() click to toggle source
   # File lib/mingle_events/http_error.rb
19 def not_found?
20   # has to be a better way to do this!!
21   response.class == Net::HTTPNotFound
22 end