Exception: Nanoc::Core::Errors::CannotGetCompiledContentOfBinaryItem

Inherits:
Nanoc::Core::Error
  • Object
show all
Defined in:
lib/nanoc/core/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

#initialize(rep) ⇒ CannotGetCompiledContentOfBinaryItem

Returns a new instance of CannotGetCompiledContentOfBinaryItem.

Parameters:

  • rep (Nanoc::Core::ItemRep)

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



102
103
104
# File 'lib/nanoc/core/errors.rb', line 102

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