Exception: Gem::SpecificGemNotFoundException
- Inherits:
 - 
      GemNotFoundException
      
        
- Object
 - RuntimeError
 - Exception
 - GemNotFoundException
 - Gem::SpecificGemNotFoundException
 
 
- Defined in:
 - lib/rubygems/exceptions.rb
 
Overview
Raised by the DependencyInstaller when a specific gem cannot be found
Instance Attribute Summary collapse
- 
  
    
      #errors  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Errors encountered attempting to find the gem.
 - 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The name of the gem that could not be found.
 - 
  
    
      #version  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The version of the gem that could not be found.
 
Instance Method Summary collapse
- 
  
    
      #initialize(name, version, errors = nil)  ⇒ SpecificGemNotFoundException 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Creates a new SpecificGemNotFoundException for a gem with the given
nameandversion. 
Constructor Details
#initialize(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.
      116 117 118 119 120 121 122  | 
    
      # 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 ⇒ Object (readonly)
Errors encountered attempting to find the gem.
      137 138 139  | 
    
      # File 'lib/rubygems/exceptions.rb', line 137 def errors @errors end  | 
  
#name ⇒ Object (readonly)
The name of the gem that could not be found.
      127 128 129  | 
    
      # File 'lib/rubygems/exceptions.rb', line 127 def name @name end  | 
  
#version ⇒ Object (readonly)
The version of the gem that could not be found.
      132 133 134  | 
    
      # File 'lib/rubygems/exceptions.rb', line 132 def version @version end  |