Exception: Nanoc::Core::Errors::CannotGetParentOrChildrenOfNonLegacyItem

Inherits:
Nanoc::Core::Error
  • Object
show all
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

Constructor Details

#initialize(identifier) ⇒ CannotGetParentOrChildrenOfNonLegacyItem

Returns a new instance of CannotGetParentOrChildrenOfNonLegacyItem.



112
113
114
# File 'lib/nanoc/core/errors.rb', line 112

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