In Files

  • rubygems/remote_fetcher.rb

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Gem::RemoteFetcher::FetchError

A FetchError exception wraps up the various possible IO and HTTP failures that could happen while downloading from the internet.

Attributes

uri[RW]

The URI which was being accessed when the exception happened.

Public Class Methods

new(message, uri) click to toggle source
 
               # File rubygems/remote_fetcher.rb, line 33
def initialize(message, uri)
  super message

  uri = parse_uri(uri)

  uri.password = 'REDACTED' if uri.respond_to?(:password) && uri.password

  @uri = uri.to_s
end