Exception: MachO::CPUTypeMismatchError

Inherits:
NotAMachOError show all
Defined in:
lib/macho/exceptions.rb

Overview

Raised when there is a mismatch between the fat arch and internal slice cputype or cpusubtype.

Instance Method Summary collapse

Constructor Details

#initialize(fat_cputype, fat_cpusubtype, macho_cputype, macho_cpusubtype) ⇒ CPUTypeMismatchError

Returns a new instance of CPUTypeMismatchError.



69
70
71
72
73
74
75
76
77
78
# File 'lib/macho/exceptions.rb', line 69

def initialize(fat_cputype, fat_cpusubtype, macho_cputype, macho_cpusubtype)
  # @param cputype_fat [Integer] the CPU type in the fat header
  # @param cpusubtype_fat [Integer] the CPU subtype in the fat header
  # @param cputype_macho [Integer] the CPU type in the macho header
  # @param cpusubtype_macho [Integer] the CPU subtype in the macho header
  super ("Mismatch between cputypes >> 0x%08<fat_cputype>x and 0x%08<macho_cputype>x\n" \
         "and/or cpusubtypes >> 0x%08<fat_cpusubtype>x and 0x%08<macho_cpusubtype>x" %
        { :fat_cputype => fat_cputype, :macho_cputype => macho_cputype,
          :fat_cpusubtype => fat_cpusubtype, :macho_cpusubtype => macho_cpusubtype })
end