Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::SpecificGemNotFoundException.new
new(name, version, errors = nil)
lib/rubygems/exceptions.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/exceptions.rb, line 105
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.