Exception: OpenURI::HTTPError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/open-uri.rb

Direct Known Subclasses

HTTPRedirect, TooManyRedirects

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, io) ⇒ HTTPError

Returns a new instance of HTTPError.



381
382
383
384
# File 'lib/open-uri.rb', line 381

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

Instance Attribute Details

#ioObject (readonly)

Returns the value of attribute io.



385
386
387
# File 'lib/open-uri.rb', line 385

def io
  @io
end