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

Overview

Raised by the DependencyInstaller when a specific gem cannot be found

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 116

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 137

attr_reader :errors

#name (readonly)

The name of the gem that could not be found.

[ GitHub ]

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

attr_reader :name

#version (readonly)

The version of the gem that could not be found.

[ GitHub ]

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

attr_reader :version