Class: Geoblacklight::FaradayMiddleware::RedirectLimitReached
- Inherits:
-
Faraday::ClientError
- Object
- Faraday::ClientError
- Geoblacklight::FaradayMiddleware::RedirectLimitReached
- Defined in:
- lib/geoblacklight/faraday_middleware/follow_redirects.rb
Overview
Exception thrown when the maximum amount of requests is exceeded.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ RedirectLimitReached
constructor
A new instance of RedirectLimitReached.
Constructor Details
#initialize(response) ⇒ RedirectLimitReached
Returns a new instance of RedirectLimitReached.
20 21 22 23 |
# File 'lib/geoblacklight/faraday_middleware/follow_redirects.rb', line 20 def initialize(response) super("too many redirects; last one to: #{response["location"]}") @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
18 19 20 |
# File 'lib/geoblacklight/faraday_middleware/follow_redirects.rb', line 18 def response @response end |