Exception: Nanoc3::Errors::NoMatchingCompilationRuleFound

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

Overview

Error that is raised when no compilation rule that can be applied to the current item can be found.

Instance Method Summary collapse

Constructor Details

#initialize(item) ⇒ NoMatchingCompilationRuleFound

Returns a new instance of NoMatchingCompilationRuleFound.

Parameters:

  • item (Nanoc3::Item)

    The item for which no compilation rule could be found



89
90
91
# File 'lib/nanoc3/base/errors.rb', line 89

def initialize(item)
  super("No compilation rules were found for the “#{item.identifier}” item.".make_compatible_with_env)
end