Class: Nanoc::Int::Errors::UnknownLayout 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 during site compilation when an item uses a layout that is not present in the site.

Instance Method Summary collapse

Constructor Details

#initialize(layout_identifier) ⇒ UnknownLayout

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

Parameters:

  • layout_identifier (String)

    The layout identifier for which no layout could be found



28
29
30
# File 'lib/nanoc/base/errors.rb', line 28

def initialize(layout_identifier)
  super("The site does not have a layout with identifier “#{layout_identifier}”.")
end