123456789_123456789_123456789_123456789_123456789_

Exception: RDoc::RI::Driver::NotFoundError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error, ::RDoc::RI::Error, ::RDoc::Error, RuntimeError
Instance Chain:
self, Error, ::RDoc::RI::Error, ::RDoc::Error, RuntimeError
Inherits: RDoc::RI::Driver::Error
Defined in: lib/rdoc/ri/driver.rb

Overview

Raised when a name isn't found in the ri data stores

Class Method Summary

Instance Method Summary

Constructor Details

.new(klass, suggestions = nil) ⇒ NotFoundError

This method is for internal use only.
[ GitHub ]

  
# File 'lib/rdoc/ri/driver.rb', line 50

def initialize(klass, suggestions = nil) # :nodoc:
  @klass = klass
  @suggestions = suggestions
end

Instance Method Details

#message

This method is for internal use only.
[ GitHub ]

  
# File 'lib/rdoc/ri/driver.rb', line 62

def message # :nodoc:
  str = "Nothing known about #{@klass}"
  if @suggestions and !@suggestions.empty?
    str += "\nDid you mean?  #{@suggestions.join("\n               ")}"
  end
  str
end

#name

Name that wasn't found

[ GitHub ]

  
# File 'lib/rdoc/ri/driver.rb', line 58

def name
  @klass
end