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, suggestion_proc = nil) ⇒ NotFoundError

This method is for internal use only.
[ GitHub ]

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

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

Instance Method Details

#message

This method is for internal use only.
[ GitHub ]

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

def message # :nodoc:
  str = "Nothing known about #{@klass}"
  suggestions = @suggestion_proc&.call
  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 45

def name
  @klass
end