class WikipediaWrapper::DisambiguationError

Exception raised when a page resolves to a Disambiguation page.

The `options` property contains a list of titles of Wikipedia pages that the query may refer to.

@note `options` does not include titles that do not link to a valid Wikipedia page.

Public Class Methods

new(title) click to toggle source
# File lib/wikipedia_wrapper/exception.rb, line 105
def initialize(title)
  @title = title
end

Public Instance Methods

message() click to toggle source
# File lib/wikipedia_wrapper/exception.rb, line 109
def message
  "\"#{@title}\" may refer to several different things."
end