Exception: Nanoc::Core::Errors::CompilationError

Inherits:
Nanoc::Core::Error show all
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

Instance Method Summary collapse

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_repObject (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

#unwrapObject



37
38
39
# File 'lib/nanoc/core/errors.rb', line 37

def unwrap
  @wrapped
end