Exception: Nanoc::Core::Errors::CompilationError
- Inherits:
-
Nanoc::Core::Error
- Object
- StandardError
- Nanoc::Core::Error
- Nanoc::Core::Errors::CompilationError
- Defined in:
- lib/nanoc/core/errors.rb
Overview
Error that is raised when compilation of an item rep fails. The underlying error is available by calling ‘#unwrap`.
Instance Attribute Summary collapse
-
#item_rep ⇒ Object
readonly
Returns the value of attribute item_rep.
Instance Method Summary collapse
-
#initialize(wrapped, item_rep) ⇒ CompilationError
constructor
A new instance of CompilationError.
- #unwrap ⇒ Object
Constructor Details
#initialize(wrapped, item_rep) ⇒ CompilationError
Returns a new instance of CompilationError.
32 33 34 35 |
# File 'lib/nanoc/core/errors.rb', line 32 def initialize(wrapped, item_rep) @wrapped = wrapped @item_rep = item_rep end |
Instance Attribute Details
#item_rep ⇒ Object (readonly)
Returns the value of attribute item_rep.
30 31 32 |
# File 'lib/nanoc/core/errors.rb', line 30 def item_rep @item_rep end |
Instance Method Details
#unwrap ⇒ Object
37 38 39 |
# File 'lib/nanoc/core/errors.rb', line 37 def unwrap @wrapped end |