Exception: Nanoc3::Errors::CannotUseTextualFilter

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

- (CannotUseTextualFilter) initialize(rep, filter_class)

attempted to be filtered

Parameters:

  • rep (Nanoc3::ItemRep)

    The item representation that was

  • filter_class (Class)

    The filter class that was used



160
161
162
# File 'lib/nanoc3/base/errors.rb', line 160

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.".make_compatible_with_env)
end