123456789_123456789_123456789_123456789_123456789_

Exception: Gem::SpecificGemNotFoundException

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, GemNotFoundException, Exception, Deprecate, 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

Deprecate - Extended

deprecate

Simple deprecation method that deprecates #name by wrapping it up in a dummy method.

skip_during

Temporarily turn off warnings.

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.

Exception - Inherited

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 106

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 127

attr_reader :errors

#name (readonly)

The name of the gem that could not be found.

[ GitHub ]

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

attr_reader :name

#version (readonly)

The version of the gem that could not be found.

[ GitHub ]

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

attr_reader :version