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.

Parameters:

  • num (Fixnum)

    the unknown number



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

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