Exception: Nanoc::Errors::DuplicateIdentifier

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

Overview

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

Instance Method Summary (collapse)

Constructor Details

- (DuplicateIdentifier) initialize(identifier, type)

Returns a new instance of DuplicateIdentifier



227
228
229
# File 'lib/nanoc/base/errors.rb', line 227

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