Skip to Content Skip to Search

An error that indicates we weren’t able to fetch some data from a source

Methods
N
W

Attributes

[R] error

The fetch error which is an Exception subclass.

[R] exception

The fetch error which is an Exception subclass.

[R] source

The source that had the fetch problem.

Class Public methods

new(source, error)

Creates a new SourceFetchProblem for the given source and error.

# File ruby/lib/rubygems/errors.rb, line 149
def initialize(source, error)
  @source = source
  @error = error
end

Instance Public methods

wordy()

An English description of the error.

# File ruby/lib/rubygems/errors.rb, line 167
def wordy
  "Unable to download data from #{Gem::Uri.redact(@source.uri)} - #{@error.message}"
end