Exception: StateFlow::RecoverableException
- Inherits:
-
Exception
- Object
- Exception
- StateFlow::RecoverableException
- Defined in:
- lib/state_flow/recoverable_exception.rb
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
-
#recover_handler ⇒ Object
readonly
Returns the value of attribute recover_handler.
Instance Method Summary collapse
-
#initialize(recover_handler, original = nil) ⇒ RecoverableException
constructor
A new instance of RecoverableException.
Constructor Details
#initialize(recover_handler, original = nil) ⇒ RecoverableException
Returns a new instance of RecoverableException.
4 5 6 7 8 |
# File 'lib/state_flow/recoverable_exception.rb', line 4 def initialize(recover_handler, original = nil) @recover_handler = recover_handler @original = original super("#{original ? original.inspect + ' ' : nil}RECOVERABLE by " << recover_handler.inspect) end |
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
3 4 5 |
# File 'lib/state_flow/recoverable_exception.rb', line 3 def original @original end |
#recover_handler ⇒ Object (readonly)
Returns the value of attribute recover_handler.
3 4 5 |
# File 'lib/state_flow/recoverable_exception.rb', line 3 def recover_handler @recover_handler end |