method

new

ruby latest stable - Class: Gem::RemoteFetcher::FetchError
new(message, uri)
public

No documentation available.

# File lib/rubygems/remote_fetcher.rb, line 28
    def initialize(message, uri)
      super message
      begin
        uri = URI(uri)
        uri.password = 'REDACTED' if uri.password
        @uri = uri.to_s
      rescue URI::InvalidURIError, ArgumentError
        @uri = uri
      end
    end