Skip to Content Skip to Search

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.

Methods
N

Attributes

[R] specs

Class Public methods

new(name, requirement, specs)

# File ruby/lib/rubygems/errors.rb, line 55
def initialize(name, requirement, specs)
  super(name, requirement)
  @specs = specs
end