class NoCategoryError
Public Class Methods
new(target_category)
click to toggle source
Raised when a given category does not exist in the compendium
Parameters:
* `target_category`: Non-existant input category that causes error. - type: str
Calls superclass method
# 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