Exception: StateFlow::RecoverableException

Inherits:
Exception
  • Object
show all
Defined in:
lib/state_flow/recoverable_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#originalObject (readonly)

Returns the value of attribute original.



3
4
5
# File 'lib/state_flow/recoverable_exception.rb', line 3

def original
  @original
end

#recover_handlerObject (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