Exception: Nanoc::Errors::RecursiveCompilation
- Inherits:
-
Generic
- Object
- StandardError
- Generic
- Nanoc::Errors::RecursiveCompilation
- 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)
-
- (RecursiveCompilation) initialize(reps)
constructor
A new instance of RecursiveCompilation.
Constructor Details
- (RecursiveCompilation) initialize(reps)
Returns a new instance of RecursiveCompilation
72 73 74 75 |
# File 'lib/nanoc/base/errors.rb', line 72 def initialize(reps) list = reps.map { |r| r.inspect }.join("\n") super("The site cannot be compiled because the following items mutually depend on each other:\n#{list}.") end |