123456789_123456789_123456789_123456789_123456789_

Exception: OpenURI::HTTPRedirect

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, HTTPError, StandardError
Instance Chain:
self, HTTPError, StandardError
Inherits: OpenURI::HTTPError
Defined in: lib/open-uri.rb

Overview

Raised on redirection, only occurs when redirect option for HTTP is false.

Class Method Summary

Instance Attribute Summary

HTTPError - Inherited

#io

Constructor Details

.new(message, io, uri) ⇒ HTTPRedirect

[ GitHub ]

  
# File 'lib/open-uri.rb', line 374

def initialize(message, io, uri)
  super(message, io)
  @uri = uri
end

Instance Attribute Details

#uri (readonly)

[ GitHub ]

  
# File 'lib/open-uri.rb', line 378

attr_reader :uri