class MachO::RecoverableModificationError
Raised when a Mach-O file modification fails but can be recovered when operating on multiple Mach-O slices of a fat binary in non-strict mode.
Attributes
macho_slice[RW]
@return [Integer, nil] The index of the Mach-O slice of a fat binary for
which modification failed or `nil` if not a fat binary. This is used to make the error message more useful.
Public Instance Methods
to_s()
click to toggle source
@return [String] The exception message.
Calls superclass method
# File lib/macho/exceptions.rb, line 26 def to_s s = super.to_s s = "While modifying Mach-O slice #{@macho_slice}: #{s}" if @macho_slice s end