Exception: Linearly::Errors::StateNotReturned
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Linearly::Errors::StateNotReturned
- Defined in:
- lib/linearly/errors/state_not_returned.rb
Overview
StateNotReturned is an error that is getting thrown when one of Steps in the Flow does not return an instance of Statefully::State.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Value that caused the error.
Instance Method Summary collapse
-
#initialize(value) ⇒ StateNotReturned
constructor
Constructor for the StateNotReturned class.
Constructor Details
#initialize(value) ⇒ StateNotReturned
Constructor for the Linearly::Errors::StateNotReturned class
23 24 25 26 |
# File 'lib/linearly/errors/state_not_returned.rb', line 23 def initialize(value) super("#{value.class.name} is not a Statefully::State") @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Value that caused the error
14 15 16 |
# File 'lib/linearly/errors/state_not_returned.rb', line 14 def value @value end |