Exception: LifecycleVM::Then::InvalidCond

Inherits:
Error
  • Object
show all
Defined in:
lib/lifecycle_vm/then.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, cond, branches, vm) ⇒ InvalidCond

Returns a new instance of InvalidCond.



100
101
102
103
104
105
106
107
# File 'lib/lifecycle_vm/then.rb', line 100

def initialize(value, cond, branches, vm)
  @value = value
  @cond = cond
  @branches = branches
  @vm = vm

  super("Unhandled condition result #{value.inspect} returned by #{cond} in #{branches}. Current context #{@vm}")
end

Instance Attribute Details

#branchesObject (readonly)

Returns the value of attribute branches.



98
99
100
# File 'lib/lifecycle_vm/then.rb', line 98

def branches
  @branches
end

#condObject (readonly)

Returns the value of attribute cond.



98
99
100
# File 'lib/lifecycle_vm/then.rb', line 98

def cond
  @cond
end

#valueObject (readonly)

Returns the value of attribute value.



98
99
100
# File 'lib/lifecycle_vm/then.rb', line 98

def value
  @value
end

#vmObject (readonly)

Returns the value of attribute vm.



98
99
100
# File 'lib/lifecycle_vm/then.rb', line 98

def vm
  @vm
end