Class: Nanoc::Int::Errors::DuplicateIdentifier Private

Inherits:
Generic
  • Object
show all
Defined in:
lib/nanoc/base/errors.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Error that is raised when multiple items or layouts with the same identifier exist.

Instance Method Summary collapse

Constructor Details

#initialize(identifier, type) ⇒ DuplicateIdentifier

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of DuplicateIdentifier.



184
185
186
# File 'lib/nanoc/base/errors.rb', line 184

def initialize(identifier, type)
  super("There are multiple #{type}s with the #{identifier} identifier.")
end