Exception: SynonymScrapper::DictionaryNotAvailable

Inherits:
Error
  • Object
show all
Defined in:
lib/synonym_scrapper.rb

Overview

Exception thrown when a wrong dicitonary name is used.

Instance Method Summary collapse

Constructor Details

#initialize(dictionary = "") ⇒ DictionaryNotAvailable

Returns a new instance of DictionaryNotAvailable.



18
19
20
21
# File 'lib/synonym_scrapper.rb', line 18

def initialize(dictionary = "")
  msg = "The dictionary named #{dictionary.to_s} does not exist in the available dictionaries list"
  super msg
end