Exception: Gem::MissingSpecVersionError
- Inherits:
-
MissingSpecError
- Object
- LoadError
- LoadError
- MissingSpecError
- Gem::MissingSpecVersionError
- Defined in:
- lib/rubygems/errors.rb
Overview
Raised when trying to activate a gem, and the gem exists on the system, but not the requested version. Instead of rescuing from this class, make sure to rescue from the superclass Gem::LoadError to catch all types of load errors.
Instance Attribute Summary collapse
-
#specs ⇒ Object
readonly
Returns the value of attribute specs.
Attributes inherited from LoadError
Instance Method Summary collapse
-
#initialize(name, requirement, specs) ⇒ MissingSpecVersionError
constructor
A new instance of MissingSpecVersionError.
Methods inherited from MissingSpecError
Constructor Details
#initialize(name, requirement, specs) ⇒ MissingSpecVersionError
Returns a new instance of MissingSpecVersionError.
56 57 58 59 |
# File 'lib/rubygems/errors.rb', line 56 def initialize(name, requirement, specs) @specs = specs super(name, requirement) end |
Instance Attribute Details
#specs ⇒ Object (readonly)
Returns the value of attribute specs.
54 55 56 |
# File 'lib/rubygems/errors.rb', line 54 def specs @specs end |