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



138
139
140
141
# File 'lib/macho/exceptions.rb', line 138

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