Exception: Nanoc::Errors::CannotUseTextualFilter

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

Returns a new instance of CannotUseTextualFilter

Parameters:

  • rep (Nanoc::ItemRep)

    The item representation that was attempted to be filtered

  • filter_class (Class)

    The filter class that was used



126
127
128
# File 'lib/nanoc/base/errors.rb', line 126

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