Class: Gem::SourceFetchProblem
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ErrorReason
|
|
Instance Chain:
self,
ErrorReason
|
|
Inherits: |
Gem::ErrorReason
|
Defined in: | lib/rubygems/errors.rb |
Overview
An error that indicates we weren't able to fetch some data from a source
Class Method Summary
- .new(source, error) ⇒ SourceFetchProblem constructor
Instance Attribute Summary
-
#error
(also: #exception)
readonly
The fetch error which is an Exception subclass.
-
#exception
readonly
The “exception” alias allows you to call raise on a
SourceFetchProblem
. -
#source
readonly
The source that had the fetch problem.
Instance Method Summary
-
#wordy
An English description of the error.
Constructor Details
.new(source, error) ⇒ SourceFetchProblem
[ GitHub ]
Instance Attribute Details
#error (readonly) Also known as: #exception
The fetch error which is an Exception subclass.
# File 'lib/rubygems/errors.rb', line 123
attr_reader :error
#exception (readonly)
The “exception” alias allows you to call raise on a SourceFetchProblem
.
# File 'lib/rubygems/errors.rb', line 135
alias exception error
#source (readonly)
The source that had the fetch problem.
# File 'lib/rubygems/errors.rb', line 118
attr_reader :source
Instance Method Details
#wordy
An English description of the error.
# File 'lib/rubygems/errors.rb', line 128
def wordy "Unable to download data from #{@source.uri} - #{@error.}" end