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



107
108
109
110
# File 'lib/macho/exceptions.rb', line 107

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