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.



88
89
90
# File 'lib/rex/poly/register.rb', line 88

def initialize(reg)
	@reg = reg
end

Instance Attribute Details

#regObject (readonly)

The LogicalRegister instance that generated the exception.



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

def reg
  @reg
end