Exception: Ridley::Errors::RedirectLimitReached

Inherits:
RidleyError
  • Object
show all
Defined in:
lib/ridley/errors.rb

Overview

Exception thrown when the maximum amount of requests is exceeded.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ RedirectLimitReached

Returns a new instance of RedirectLimitReached


46
47
48
49
# File 'lib/ridley/errors.rb', line 46

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response


44
45
46
# File 'lib/ridley/errors.rb', line 44

def response
  @response
end