Class: Nanoc::Int::Errors::CannotCreateMultipleSnapshotsWithSameName 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 a snapshot with an existing name is made.

Instance Method Summary collapse

Constructor Details

#initialize(rep, snapshot) ⇒ CannotCreateMultipleSnapshotsWithSameName

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 CannotCreateMultipleSnapshotsWithSameName.

Parameters:

  • rep (Nanoc::Int::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



169
170
171
# File 'lib/nanoc/base/errors.rb', line 169

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