class Nanoc::Core::Errors::NoSuchSnapshot
Error
that is raised when the compiled content at a non-existing snapshot is requested.
Attributes
item_rep[R]
@return [Nanoc::Core::ItemRep] The item rep from which the compiled content
was requested
snapshot[R]
@return [Symbol] The requested snapshot
Public Class Methods
new(item_rep, snapshot)
click to toggle source
@param [Nanoc::Core::ItemRep] item_rep
The item rep from which the compiled
content was requested
@param [Symbol] snapshot The requested snapshot
Calls superclass method
# File lib/nanoc/core/errors.rb, line 20 def initialize(item_rep, snapshot) @item_rep = item_rep @snapshot = snapshot super("The “#{item_rep.inspect}” item rep does not have a snapshot “#{snapshot.inspect}”") end