Exception: Nanoc::Core::Errors::UnknownLayout

Inherits:
Nanoc::Core::Error show all
Defined in:
lib/nanoc/core/errors.rb

Overview

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

Returns a new instance of UnknownLayout.

Parameters:

  • layout_identifier (String)

    The layout identifier for which no layout could be found



122
123
124
# File 'lib/nanoc/core/errors.rb', line 122

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