Exception: Gem::SpecificGemNotFoundException

Inherits:
GemNotFoundException show all
Defined in:
lib/rubygems/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from Exception

#source_exception

Instance Method Summary collapse

Constructor Details

#initialize(name, version, errors = nil) ⇒ SpecificGemNotFoundException

Returns a new instance of SpecificGemNotFoundException.



57
58
59
60
61
62
63
# File 'lib/rubygems/exceptions.rb', line 57

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

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors



65
66
67
# File 'lib/rubygems/exceptions.rb', line 65

def errors
  @errors
end

#nameObject (readonly)

Returns the value of attribute name



65
66
67
# File 'lib/rubygems/exceptions.rb', line 65

def name
  @name
end

#versionObject (readonly)

Returns the value of attribute version



65
66
67
# File 'lib/rubygems/exceptions.rb', line 65

def version
  @version
end