Exception: Gem::RemoteFetcher::FetchError
- Defined in:
- lib/rubygems/remote_fetcher.rb
Overview
A FetchError exception wraps up the various possible IO and HTTP failures that could happen while downloading from the internet.
Instance Attribute Summary collapse
-
#uri ⇒ Object
The URI which was being accessed when the exception happened.
Instance Method Summary collapse
-
#initialize(message, uri) ⇒ FetchError
constructor
A new instance of FetchError.
-
#to_s ⇒ Object
:nodoc:.
Constructor Details
#initialize(message, uri) ⇒ FetchError
Returns a new instance of FetchError.
26 27 28 29 |
# File 'lib/rubygems/remote_fetcher.rb', line 26 def initialize(, uri) super @uri = uri end |
Instance Attribute Details
#uri ⇒ Object
The URI which was being accessed when the exception happened.
24 25 26 |
# File 'lib/rubygems/remote_fetcher.rb', line 24 def uri @uri end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
31 32 33 |
# File 'lib/rubygems/remote_fetcher.rb', line 31 def to_s # :nodoc: "#{super} (#{uri})" end |