Exception: Nanoc::Errors::CannotCreateMultipleSnapshotsWithSameName
- Inherits:
-
Generic
- Object
- StandardError
- Generic
- Nanoc::Errors::CannotCreateMultipleSnapshotsWithSameName
- 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)
-
- (CannotCreateMultipleSnapshotsWithSameName) initialize(rep, snapshot)
constructor
A new instance of CannotCreateMultipleSnapshotsWithSameName.
Constructor Details
- (CannotCreateMultipleSnapshotsWithSameName) initialize(rep, snapshot)
Returns a new instance of CannotCreateMultipleSnapshotsWithSameName
170 171 172 |
# File 'lib/nanoc/base/errors.rb', line 170 def initialize(rep, snapshot) super("Attempted to create a snapshot with a duplicate name #{snapshot.inspect} for the item rep “#{rep.inspect}”") end |