Class: Nanoc::Int::Errors::CannotDetermineFilter 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 during site compilation when a layout is compiled for which the filter cannot be determined. This is similar to the UnknownFilter error, but specific for filters for layouts.

Instance Method Summary collapse

Constructor Details

#initialize(layout_identifier) ⇒ CannotDetermineFilter

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 CannotDetermineFilter.

Parameters:

  • layout_identifier (String)

    The identifier of the layout for which the filter could not be determined



49
50
51
# File 'lib/nanoc/base/errors.rb', line 49

def initialize(layout_identifier)
  super("The filter to be used for the “#{layout_identifier}” layout could not be determined. Make sure the layout does have a filter.")
end