Exception: Nanoc::Core::Errors::CannotUseTextualFilter

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

Overview

Error that is raised when a textual filter is attempted to be applied to a binary item representation.

Instance Method Summary collapse

Constructor Details

#initialize(rep, filter_class) ⇒ CannotUseTextualFilter

Returns a new instance of CannotUseTextualFilter.

Parameters:

  • rep (Nanoc::Core::ItemRep)

    The item representation that was attempted to be filtered

  • filter_class (Class)

    The filter class that was used



143
144
145
# File 'lib/nanoc/core/errors.rb', line 143

def initialize(rep, filter_class)
  super("The “#{filter_class.inspect}” filter cannot be used to filter the “#{rep.item.identifier}” item (rep “#{rep.name}”), because textual filters cannot be used on binary items.")
end