Exception: Elf::Section::UnknownType

Inherits:
Exception
  • Object
show all
Defined in:
lib/elf/section.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type_id, section_name) ⇒ UnknownType

Returns a new instance of UnknownType.



44
45
46
47
48
# File 'lib/elf/section.rb', line 44

def initialize(type_id, section_name)
  @type_id = type_id
  @section_name = section_name
  super(sprintf("Unknown section type 0x%08x for section #{@section_name}", @type_id))
end

Instance Attribute Details

#section_nameObject (readonly)

Returns the value of attribute section_name.



50
51
52
# File 'lib/elf/section.rb', line 50

def section_name
  @section_name
end

#type_idObject (readonly)

Returns the value of attribute type_id.



50
51
52
# File 'lib/elf/section.rb', line 50

def type_id
  @type_id
end