Exception: NoCategoryError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hyrule_compendium.rb

Instance Method Summary collapse

Constructor Details

#initialize(target_category) ⇒ NoCategoryError

Raised when a given category does not exist in the compendium

Parameters:

* `target_category`: Non-existant input category that causes error.
    - type: str


29
30
31
# File 'lib/hyrule_compendium.rb', line 29

def initialize(target_category)
    super "Category '#{target_category}' not in compendium. Categories are 'creatures', 'equipment', 'materials', 'monsters', and 'treaure'."
end