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



34
35
36
# File 'lib/simple/http/errors.rb', line 34

def location
  response["Location"]
end

#messageObject



38
39
40
# File 'lib/simple/http/errors.rb', line 38

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