class Gem::RemoteFetcher::FetchError

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

Attributes

original_uri[RW]

The URI which was being accessed when the exception happened.

uri[RW]

The URI which was being accessed when the exception happened.

Public Class Methods

new(message, uri) click to toggle source
Calls superclass method Exception::new
# File lib/rubygems/remote_fetcher.rb, line 28
def initialize(message, uri)
  super message

  uri = Gem::UriParser.parse_uri(uri)

  @original_uri = uri.dup

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

  @uri = uri.to_s
end