Exception: Rex::Poly::InvalidRegisterError

Inherits:
RuntimeError
  • Object
show all
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

Instance Method Summary collapse

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

#regObject (readonly)

The LogicalRegister instance that generated the exception.



96
97
98
# File 'lib/rex/poly/register.rb', line 96

def reg
  @reg
end