class DeskApi::Error::FollowRedirectError

Raised when desk.com returns a 4xx HTTP status code or there's an error in Faraday

Public Class Methods

new(response) click to toggle source
Calls superclass method DeskApi::Error::new
# File lib/desk_api/error/follow_redirect_error.rb, line 36
def initialize(response)
  error   = "Redirection limit reach, last redirect to: #{response['location']}"
  super(error, response)
end