Exception: Nanoc::Core::Errors::CannotLayoutBinaryItem
- Inherits:
-
Nanoc::Core::Error
- Object
- StandardError
- Nanoc::Core::Error
- Nanoc::Core::Errors::CannotLayoutBinaryItem
- Defined in:
- lib/nanoc/core/errors.rb
Overview
Error that is raised when a binary item is attempted to be laid out.
Instance Method Summary collapse
-
#initialize(rep) ⇒ CannotLayoutBinaryItem
constructor
A new instance of CannotLayoutBinaryItem.
Constructor Details
#initialize(rep) ⇒ CannotLayoutBinaryItem
Returns a new instance of CannotLayoutBinaryItem.
128 129 130 |
# File 'lib/nanoc/core/errors.rb', line 128 def initialize(rep) super("The “#{rep.item.identifier}” item (rep “#{rep.name}”) cannot be laid out because it is a binary item. If you are getting this error for an item that should be textual instead of binary, make sure that its extension is included in the text_extensions array in the site configuration.") end |