Exception: MachO::CPUSubtypeError

Inherits:
MachOError
  • Object
show all
Defined in:
lib/macho/exceptions.rb

Overview

Raised when the CPU type/sub-type pair is unknown.

Instance Method Summary collapse

Constructor Details

#initialize(cputype, cpusubtype) ⇒ CPUSubtypeError

Returns a new instance of CPUSubtypeError.

Parameters:

  • cputype (Integer)

    the CPU type of the unknown pair

  • cpusubtype (Integer)

    the CPU sub-type of the unknown pair



82
83
84
85
# File 'lib/macho/exceptions.rb', line 82

def initialize(cputype, cpusubtype)
  super "Unrecognized CPU sub-type: 0x#{"%08x" % cpusubtype}" \
    " (for CPU type: 0x#{"%08x" % cputype})"
end