Exception: Philiprehberger::Pipe::Halted
- Defined in:
- lib/philiprehberger/pipe/error.rb
Overview
Raised internally by ‘Pipe.halt!(value)` to short-circuit the pipeline and return `value` as the final result. Not treated as an error � it bypasses `on_error` handlers.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Halted
constructor
A new instance of Halted.
Constructor Details
#initialize(value) ⇒ Halted
Returns a new instance of Halted.
23 24 25 26 |
# File 'lib/philiprehberger/pipe/error.rb', line 23 def initialize(value) @value = value super('pipeline halted') end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
21 22 23 |
# File 'lib/philiprehberger/pipe/error.rb', line 21 def value @value end |