Exception: Nanoc::Core::Errors::CannotDetermineFilter

Inherits:
Nanoc::Core::Error show all
Defined in:
lib/nanoc/core/errors.rb

Overview

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

Returns a new instance of CannotDetermineFilter.

Parameters:

  • layout_identifier (String)

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



97
98
99
# File 'lib/nanoc/core/errors.rb', line 97

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