123456789_123456789_123456789_123456789_123456789_

Exception: Gem::SpecificGemNotFoundException

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, GemNotFoundException, Exception, RuntimeError
Instance Chain:
self, GemNotFoundException, Exception, RuntimeError
Inherits: Gem::GemNotFoundException
Defined in: lib/rubygems/exceptions.rb

Class Method Summary

Instance Attribute Summary

  • #errors readonly

    Errors encountered attempting to find the gem.

  • #name readonly

    The name of the gem that could not be found.

  • #version readonly

    The version of the gem that could not be found.

Constructor Details

.new(name, version, errors = nil) ⇒ SpecificGemNotFoundException

Creates a new SpecificGemNotFoundException for a gem with the given #name and #version. Any #errors encountered when attempting to find the gem are also stored.

[ GitHub ]

  
# File 'lib/rubygems/exceptions.rb', line 113

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 (readonly)

Errors encountered attempting to find the gem.

[ GitHub ]

  
# File 'lib/rubygems/exceptions.rb', line 134

attr_reader :errors

#name (readonly)

The name of the gem that could not be found.

[ GitHub ]

  
# File 'lib/rubygems/exceptions.rb', line 124

attr_reader :name

#version (readonly)

The version of the gem that could not be found.

[ GitHub ]

  
# File 'lib/rubygems/exceptions.rb', line 129

attr_reader :version