class Hyperkit::Middleware::RedirectLimitReached

Public: Exception thrown when the maximum amount of requests is exceeded.

Taken from Octokit, which was originally adapted from github.com/lostisland/faraday_middleware/blob/138766e/lib/faraday_middleware/response/follow_redirects.rb

Attributes

response[R]

Public Class Methods

new(response) click to toggle source
Calls superclass method
# File lib/hyperkit/middleware/follow_redirects.rb, line 16
def initialize(response)
  super "too many redirects; last one to: #{response['location']}"
  @response = response
end