Exception: Nanoc::Errors::NoMatchingRoutingRuleFound

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

- (NoMatchingRoutingRuleFound) initialize(rep)

Returns a new instance of NoMatchingRoutingRuleFound

Parameters:

  • rep (Nanoc::ItemRep)

    The item repiresentation for which no routing rule could be found



90
91
92
# File 'lib/nanoc/base/errors.rb', line 90

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