In Files

  • rubygems/exceptions.rb

Class/Module Index [+]

Quicksearch

Gem::SpecificGemNotFoundException

Raised by the DependencyInstaller when a specific gem cannot be found

Attributes

errors[R]

Errors encountered attempting to find the gem.

name[R]

The name of the gem that could not be found.

version[R]

The version of the gem that could not be found.

Public Class Methods

new(name, version, errors=nil) click to toggle source

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.

 
               # File rubygems/exceptions.rb, line 94
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
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus