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



85
86
87
88
# File 'lib/macho/exceptions.rb', line 85

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