Exception: Nanoc::Errors::RecursiveCompilation

Inherits:
Generic
  • Object
show all
Defined in:
lib/nanoc/base/errors.rb

Overview

Error that is raised during site compilation when an item (directly or indirectly) includes its own item content, leading to endless recursion.

Instance Method Summary (collapse)

Constructor Details

- (RecursiveCompilation) initialize(reps)

Returns a new instance of RecursiveCompilation

Parameters:

  • reps (Array<Nanoc::ItemRep>)

    A list of item representations that mutually depend on each other



61
62
63
64
# File 'lib/nanoc/base/errors.rb', line 61

def initialize(reps)
  list = reps.map(&:inspect).join("\n")
  super("The site cannot be compiled because the following items mutually depend on each other:\n#{list}.")
end