Method: Gem::SpecificGemNotFoundException#initialize
- Defined in:
- lib/rubygems/exceptions.rb
#initialize(name, version, errors = nil) ⇒ SpecificGemNotFoundException
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.
113 114 115 116 117 118 119 |
# File '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 |