Exception: Nanoc::Core::Errors::CannotGetParentOrChildrenOfNonLegacyItem
- Inherits:
-
Nanoc::Core::Error
- Object
- StandardError
- Nanoc::Core::Error
- Nanoc::Core::Errors::CannotGetParentOrChildrenOfNonLegacyItem
- Defined in:
- lib/nanoc/core/errors.rb
Overview
Error that is raised when attempting to call #parent or #children on an item with a legacy identifier.
Instance Method Summary collapse
-
#initialize(identifier) ⇒ CannotGetParentOrChildrenOfNonLegacyItem
constructor
A new instance of CannotGetParentOrChildrenOfNonLegacyItem.
Constructor Details
#initialize(identifier) ⇒ CannotGetParentOrChildrenOfNonLegacyItem
Returns a new instance of CannotGetParentOrChildrenOfNonLegacyItem.
109 110 111 |
# File 'lib/nanoc/core/errors.rb', line 109 def initialize(identifier) super("You cannot get the parent or children of an item that has a “full” identifier (#{identifier}). Getting the parent or children of an item is only possible for items that have a legacy identifier.") end |