Exception: Nanoc::Errors::CannotCreateMultipleSnapshotsWithSameName

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

Overview

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

Instance Method Summary (collapse)

Constructor Details

- (CannotCreateMultipleSnapshotsWithSameName) initialize(rep, snapshot)

Returns a new instance of CannotCreateMultipleSnapshotsWithSameName

Parameters:

  • rep (Nanoc::ItemRep)

    The item representation for which a snapshot was attempted to be made

  • snapshot (Symbol)

    The name of the snapshot that was attempted to be made



199
200
201
# File 'lib/nanoc/base/errors.rb', line 199

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