Exception: Nanoc::Core::ActionSequenceBuilder::CannotCreateMultipleSnapshotsWithSameNameError

Inherits:
Error
  • Object
show all
Includes:
ContractsSupport
Defined in:
lib/nanoc/core/action_sequence_builder.rb

Overview

Error that is raised when a snapshot with an existing name is made.

Instance Method Summary collapse

Methods included from ContractsSupport

enabled?, included, setup_once, warn_about_performance

Constructor Details

#initialize(rep, snapshot) ⇒ CannotCreateMultipleSnapshotsWithSameNameError

Returns a new instance of CannotCreateMultipleSnapshotsWithSameNameError.



13
14
15
# File 'lib/nanoc/core/action_sequence_builder.rb', line 13

def initialize(rep, snapshot)
  super("Attempted to create a snapshot with a duplicate name #{snapshot.inspect} for the item rep #{rep}")
end