Attributes
Read
Errors encountered attempting to find the gem.
Read
The name of the gem that could not be found.
Read
The version of the gem that could not be found.
Class Methods
3.4
View on GitHub
# File tmp/rubies/ruby-3.4.1/lib/rubygems/exceptions.rb, line 113
def initialize(name, version, errors=nil)
super "Could not find a valid gem '#{name}' (#{version}) locally or in a repository"
@name = name
@version = version
@errors = errors
end
Creates a new SpecificGemNotFoundException for a gem with the given name and version. Any errors encountered when attempting to find the gem are also stored.