Exception: Gem::MissingSpecError
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
LoadError ,
LoadError
|
|
Instance Chain:
self,
LoadError ,
LoadError
|
|
Inherits: |
Gem::LoadError
|
Defined in: | lib/rubygems/errors.rb |
Overview
Raised when trying to activate a gem, and that gem does not exist on the system. Instead of rescuing from this class, make sure to rescue from the superclass LoadError
to catch all types of load errors.
Class Method Summary
- .new(name, requirement) ⇒ MissingSpecError constructor
Instance Attribute Summary
LoadError
- Inherited
#name | Name of gem. |
#requirement |
|
Instance Method Summary
- #build_message private
- #message Internal use only
Constructor Details
.new(name, requirement) ⇒ MissingSpecError
# File 'lib/rubygems/errors.rb', line 28
def initialize(name, requirement) @name = name @requirement = requirement end
Instance Method Details
#build_message (private)
[ GitHub ]# File 'lib/rubygems/errors.rb', line 40
def total = Gem::Specification.stubs.size "Could not find '#{name}' (#{requirement}) among #{total} total gem(s)\n" end
#message
This method is for internal use only.
[ GitHub ]