Module: Diggit::EntryWithError
- Included in:
- RunnableEntry, SourceEntry
- Defined in:
- lib/dgit/entries.rb
Overview
Journal entry for elements that can have error.
Instance Attribute Summary collapse
-
#error ⇒ ErrorEntry?
The error entry.
Instance Attribute Details
#error ⇒ ErrorEntry?
Returns the error entry.
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/dgit/entries.rb', line 23 module EntryWithError attr_reader :error # Set the error of the entry. # @param e [Exception, nil] the error, to indicate an absence of error, pass +nil+. # @return [void] def error=(e) @error = e.nil? ? nil : ErrorEntry.new(e) end end |