Exception: MachO::RecoverableModificationError
- Inherits:
-
ModificationError
- Object
- RuntimeError
- MachOError
- ModificationError
- MachO::RecoverableModificationError
- Defined in:
- lib/macho/exceptions.rb
Overview
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.
Direct Known Subclasses
DylibIdMissingError, DylibUnknownError, RpathExistsError, RpathUnknownError
Instance Attribute Summary collapse
-
#macho_slice ⇒ Integer?
The index of the Mach-O slice of a fat binary for which modification failed or
nilif not a fat binary.
Instance Method Summary collapse
-
#to_s ⇒ String
The exception message.
Instance Attribute Details
#macho_slice ⇒ Integer?
Returns 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.
16 17 18 |
# File 'lib/macho/exceptions.rb', line 16 def macho_slice @macho_slice end |
Instance Method Details
#to_s ⇒ String
Returns The exception message.
19 20 21 22 23 |
# File 'lib/macho/exceptions.rb', line 19 def to_s s = super.to_s s = "While modifying Mach-O slice #{@macho_slice}: #{s}" if @macho_slice s end |