Exception: Gem::SpecificGemNotFoundException
- Inherits:
-
GemNotFoundException
- Object
- RuntimeError
- Exception
- GemNotFoundException
- Gem::SpecificGemNotFoundException
- Defined in:
- lib/rubygems/exceptions.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Attributes inherited from Exception
Instance Method Summary collapse
-
#initialize(name, version, errors = nil) ⇒ SpecificGemNotFoundException
constructor
A new instance of SpecificGemNotFoundException.
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
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
65 66 67 |
# File 'lib/rubygems/exceptions.rb', line 65 def errors @errors end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
65 66 67 |
# File 'lib/rubygems/exceptions.rb', line 65 def name @name end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
65 66 67 |
# File 'lib/rubygems/exceptions.rb', line 65 def version @version end |