Exception: Ridley::Errors::RedirectLimitReached
- Inherits:
-
RidleyError
- Object
- StandardError
- RidleyError
- Ridley::Errors::RedirectLimitReached
- Defined in:
- lib/ridley/errors.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.
58 59 60 61 |
# File 'lib/ridley/errors.rb', line 58 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.
56 57 58 |
# File 'lib/ridley/errors.rb', line 56 def response @response end |