Class: Nanoc::Int::Errors::NoMatchingRoutingRuleFound Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of NoMatchingRoutingRuleFound.

Parameters:

  • rep (Nanoc::Int::ItemRep)

    The item repiresentation for which no routing rule could be found



88
89
90
# File 'lib/nanoc/base/errors.rb', line 88

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