Exception: Simple::HTTP::TooManyRedirections

Inherits:
Error
  • Object
show all
Defined in:
lib/simple/http/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#response

Instance Method Summary collapse

Methods inherited from Error

#initialize, #request, #status, #verb

Constructor Details

This class inherits a constructor from Simple::HTTP::Error

Instance Method Details

#locationObject



52
53
54
# File 'lib/simple/http/errors.rb', line 52

def location
  response["Location"]
end

#messageObject



56
57
58
# File 'lib/simple/http/errors.rb', line 56

def message
  "#{super}: too many redirections (latest to #{location})"
end