Skip to Content Skip to Search

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

Methods
N

Attributes

[RW] original_uri

The URI which was being accessed when the exception happened.

[RW] uri

The URI which was being accessed when the exception happened.

Class Public methods

new(message, uri)

# File ruby/lib/rubygems/remote_fetcher.rb, line 28
def initialize(message, uri)
  uri = Gem::Uri.new(uri)

  super uri.redact_credentials_from(message)

  @original_uri = uri.to_s
  @uri = uri.redacted.to_s
end