Exception: NoCategoryError
- Inherits:
-
StandardError
- Object
- StandardError
- NoCategoryError
- Defined in:
- lib/hyrule_compendium.rb
Instance Method Summary collapse
-
#initialize(target_category) ⇒ NoCategoryError
constructor
Raised when a given category does not exist in the compendium.
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 |