class Nanoc::Int::Errors::CannotCreateMultipleSnapshotsWithSameName
Error that is raised when a snapshot with an existing name is made.
Public Class Methods
new(rep, snapshot)
click to toggle source
@param [Nanoc::Int::ItemRep] rep The item representation for which a
snapshot was attempted to be made
@param [Symbol] snapshot The name of the snapshot that was attempted to
be made
Calls superclass method
# 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