Exception: Nanoc3::Errors::RecursiveCompilation

Inherits:
Generic
  • Object
show all
Defined in:
lib/nanoc3/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

#initialize(reps) ⇒ RecursiveCompilation

Returns a new instance of RecursiveCompilation.

Parameters:

  • reps (Array<Nanoc3::ItemRep>)

    A list of item representations that mutually depend on each other



67
68
69
# File 'lib/nanoc3/base/errors.rb', line 67

def initialize(reps)
  super("The site cannot be compiled because the following items mutually depend on each other: #{reps.inspect}.".make_compatible_with_env)
end