Exception: MachO::MagicError

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

Overview

raised when a file’s magic bytes are not valid mach-o magic

Instance Method Summary collapse

Constructor Details

#initialize(num) ⇒ MagicError

Returns a new instance of MagicError.



8
9
10
# File 'lib/macho/exceptions.rb', line 8

def initialize(num)
  super "Unrecognized Mach-O magic: 0x#{"%02x" % num}"
end