Exception: MachO::LCStrMalformedError

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

Overview

Raised when a load command string is malformed in some way.

Instance Method Summary collapse

Constructor Details

#initialize(lc) ⇒ LCStrMalformedError

Returns a new instance of LCStrMalformedError.

Parameters:

  • lc (MachO::LoadCommand)

    the load command containing the string



160
161
162
163
# File 'lib/macho/exceptions.rb', line 160

def initialize(lc)
  super "Load command #{lc.type} at offset #{lc.view.offset} contains a " \
        "malformed string"
end