123456789_123456789_123456789_123456789_123456789_

Class: Octokit::Middleware::RedirectLimitReached

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Faraday::ClientError
Instance Chain:
self, Faraday::ClientError
Inherits: Faraday::ClientError
  • Object
Defined in: lib/octokit/middleware/follow_redirects.rb

Overview

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

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(response) ⇒ RedirectLimitReached

[ GitHub ]

  
# File 'lib/octokit/middleware/follow_redirects.rb', line 17

def initialize(response)
  super "too many redirects; last one to: #{response['location']}"
  @response = response
end

Instance Attribute Details

#response (readonly)

[ GitHub ]

  
# File 'lib/octokit/middleware/follow_redirects.rb', line 15

attr_reader :response