Class HarmonyException
- Namespace
- HarmonyLib
- Assembly
- 0Harmony.dll
Under Mono, HarmonyException wraps IL compile errors with detailed information about the failure
public class HarmonyException : Exception
- Inheritance
-
objectExceptionHarmonyException
Methods
GetErrorIndex()
Get the index of the errornous IL instruction
public int GetErrorIndex()
Returns
- int
The index into the list of instructions or -1 if not found
GetErrorOffset()
Get the error offset of the errornous IL instruction
public int GetErrorOffset()
Returns
- int
The offset
GetInstructions()
Get a list of IL instructions without offsets
public List<CodeInstruction> GetInstructions()
Returns
- List<CodeInstruction>
A list of CodeInstruction
GetInstructionsWithOffsets()
Get a list of IL instructions in pairs of offset+code
public List<KeyValuePair<int, CodeInstruction>> GetInstructionsWithOffsets()
Returns
- List<KeyValuePair<int, CodeInstruction>>
A list of key/value pairs which represent an offset and the code at that offset