Exception: LifecycleVM::CondBase::InvalidAttr
- 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
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#cond_class ⇒ Object
readonly
Returns the value of attribute cond_class.
Instance Method Summary collapse
-
#initialize(cond_class, attribute) ⇒ InvalidAttr
constructor
A new instance of InvalidAttr.
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
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
30 31 32 |
# File 'lib/lifecycle_vm/cond_base.rb', line 30 def attribute @attribute end |
#cond_class ⇒ Object (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 |