Exception: MachO::MagicError
- Inherits:
-
MachOError
- Object
- RuntimeError
- MachOError
- MachO::MagicError
- Defined in:
- lib/macho/exceptions.rb
Overview
Raised when a file's magic bytes are not valid Mach-O magic.
Instance Method Summary collapse
-
#initialize(num) ⇒ MagicError
constructor
A new instance of MagicError.
Constructor Details
#initialize(num) ⇒ MagicError
Returns a new instance of MagicError.
9 10 11 |
# File 'lib/macho/exceptions.rb', line 9 def initialize(num) super "Unrecognized Mach-O magic: 0x#{"%02x" % num}" end |