lib/nanoc/base/errors.rb in nanoc-4.11.2 vs lib/nanoc/base/errors.rb in nanoc-4.11.3

- old
+ new

@@ -178,33 +178,14 @@ @snapshot = snapshot super("The “#{item_rep.inspect}” item rep does not have a snapshot “#{snapshot.inspect}”") end end - # Error that is raised when a snapshot with an existing name is made. - class CannotCreateMultipleSnapshotsWithSameName < Generic - # @param [Nanoc::Core::ItemRep] rep The item representation for which a - # snapshot was attempted to be made - # - # @param [Symbol] snapshot The name of the snapshot that was attempted to - # be made - def initialize(rep, snapshot) - super("Attempted to create a snapshot with a duplicate name #{snapshot.inspect} for the item rep #{rep}") - end - end - # Error that is raised when the compiled content of a binary item is attempted to be accessed. class CannotGetCompiledContentOfBinaryItem < Generic # @param [Nanoc::Core::ItemRep] rep The binary item representation whose compiled content was attempted to be accessed def initialize(rep) super("You cannot access the compiled content of a binary item representation (but you can access the path). The offending item rep is #{rep}.") - end - end - - # Error that is raised when multiple items or layouts with the same identifier exist. - class DuplicateIdentifier < Generic - def initialize(identifier, type) - super("There are multiple #{type}s with the #{identifier} identifier.") end end # Error that is raised when attempting to call #parent or #children on an item with a legacy identifier. class CannotGetParentOrChildrenOfNonLegacyItem < Generic