Exception: Nanoc3::Errors::NoMatchingRoutingRuleFound

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(rep) ⇒ NoMatchingRoutingRuleFound

Returns a new instance of NoMatchingRoutingRuleFound.

Parameters:

  • item (Nanoc3::Item)

    The item for which no routing rule could be found



101
102
103
# File 'lib/nanoc3/base/errors.rb', line 101

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