Exception: Gem::RemoteFetcher::FetchError
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)
-
- (Object) uri
The URI which was being accessed when the exception happened.
Instance Method Summary (collapse)
-
- (FetchError) initialize(message, uri)
constructor
A new instance of FetchError.
-
- (Object) to_s
:nodoc:.
Constructor Details
- (FetchError) initialize(message, uri)
A new instance of FetchError
24 25 26 27 |
# File 'lib/rubygems/remote_fetcher.rb', line 24 def initialize(, uri) super @uri = uri end |
Instance Attribute Details
- (Object) uri
The URI which was being accessed when the exception happened.
22 23 24 |
# File 'lib/rubygems/remote_fetcher.rb', line 22 def uri @uri end |
Instance Method Details
- (Object) to_s
:nodoc:
29 30 31 |
# File 'lib/rubygems/remote_fetcher.rb', line 29 def to_s # :nodoc: "#{super} (#{uri})" end |