Exception: LifecycleVM::CondBase::InvalidAttr

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

Overview

Raised if a conditional attempts to read from a memory slot that does not exist.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cond_class, attribute) ⇒ InvalidAttr

Returns a new instance of InvalidAttr.



32
33
34
35
36
# File 'lib/lifecycle_vm/cond_base.rb', line 32

def initialize(cond_class, attribute)
  @cond_class = cond_class
  @attribute = attribute
  super("Invalid attribute #{attribute} access by #{cond_class.name}")
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



30
31
32
# File 'lib/lifecycle_vm/cond_base.rb', line 30

def attribute
  @attribute
end

#cond_classObject (readonly)

Returns the value of attribute cond_class.



30
31
32
# File 'lib/lifecycle_vm/cond_base.rb', line 30

def cond_class
  @cond_class
end