Exception: Nanoc::Errors::CannotGetCompiledContentOfBinaryItem

Inherits:
Generic
  • Object
show all
Defined in:
lib/nanoc/base/errors.rb

Overview

Error that is raised when the compiled content of a binary item is attempted to be accessed.

Instance Method Summary (collapse)

Constructor Details

- (CannotGetCompiledContentOfBinaryItem) initialize(rep)

Returns a new instance of CannotGetCompiledContentOfBinaryItem

Parameters:

  • rep (Nanoc::ItemRep)

    The binary item representation whose compiled content was attempted to be accessed



209
210
211
# File 'lib/nanoc/base/errors.rb', line 209

def initialize(rep)
  super("You cannot access the compiled content of a binary item representation (but you can access the path). The offending item rep is #{rep.inspect}.")
end