Exception: Vangrail::Colang::Interpreter::Stopped

Inherits:
StandardError
  • Object
show all
Defined in:
lib/vangrail/colang/interpreter.rb

Overview

Raised through the interpreter to unwind a flow on stop.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message_text) ⇒ Stopped

Returns a new instance of Stopped.



31
32
33
34
# File 'lib/vangrail/colang/interpreter.rb', line 31

def initialize(message_text)
  @message_text = message_text
  super('flow stopped')
end

Instance Attribute Details

#message_textObject (readonly)

Returns the value of attribute message_text.



29
30
31
# File 'lib/vangrail/colang/interpreter.rb', line 29

def message_text
  @message_text
end