Class: Nanoc::Int::Errors::CannotCreateMultipleSnapshotsWithSameName Private
- 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
-
#initialize(rep, snapshot) ⇒ CannotCreateMultipleSnapshotsWithSameName
constructor
private
A new instance of CannotCreateMultipleSnapshotsWithSameName.
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.
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 |