Exception: Elf::Section::UnknownType
- Inherits:
-
Exception
- Object
- Exception
- Elf::Section::UnknownType
- Defined in:
- lib/elf/section.rb
Instance Attribute Summary collapse
-
#section_name ⇒ Object
readonly
Returns the value of attribute section_name.
-
#type_id ⇒ Object
readonly
Returns the value of attribute type_id.
Instance Method Summary collapse
-
#initialize(type_id, section_name) ⇒ UnknownType
constructor
A new instance of UnknownType.
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_name ⇒ Object (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_id ⇒ Object (readonly)
Returns the value of attribute type_id.
50 51 52 |
# File 'lib/elf/section.rb', line 50 def type_id @type_id end |