Exception: Rex::Poly::InvalidRegisterError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RuntimeError
- Rex::Poly::InvalidRegisterError
- Defined in:
- lib/rex/poly/register.rb
Overview
An exception that is raised when the regnum method is accessed on a LogicalRegister that does not currently have a regnum assigned to it.
Instance Attribute Summary collapse
-
#reg ⇒ Object
readonly
The LogicalRegister instance that generated the exception.
Instance Method Summary collapse
-
#initialize(reg) ⇒ InvalidRegisterError
constructor
Initializes the exception with the instance that lead to the generation of the exception such that it can be assigned a register number as needed.
Constructor Details
#initialize(reg) ⇒ InvalidRegisterError
Initializes the exception with the instance that lead to the generation of the exception such that it can be assigned a register number as needed.
89 90 91 |
# File 'lib/rex/poly/register.rb', line 89 def initialize(reg) @reg = reg end |
Instance Attribute Details
#reg ⇒ Object (readonly)
The LogicalRegister instance that generated the exception.
96 97 98 |
# File 'lib/rex/poly/register.rb', line 96 def reg @reg end |