Exception: Nanoc::Core::Site::DuplicateIdentifierError Private
- Defined in:
- lib/nanoc/core/site.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
-
#initialize(identifier, type) ⇒ DuplicateIdentifierError
constructor
private
A new instance of DuplicateIdentifierError.
Constructor Details
#initialize(identifier, type) ⇒ DuplicateIdentifierError
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 DuplicateIdentifierError.
9 10 11 |
# File 'lib/nanoc/core/site.rb', line 9 def initialize(identifier, type) super("There are multiple #{type}s with the #{identifier} identifier.") end |