diff --git a/docs/api/HarmonyLib.Harmony.html b/docs/api/HarmonyLib.Harmony.html index 350f2797..49a7ef5b 100644 --- a/docs/api/HarmonyLib.Harmony.html +++ b/docs/api/HarmonyLib.Harmony.html @@ -565,7 +565,7 @@

Declaration
-
public MethodInfo ReversePatch(MethodBase original, HarmonyMethod standin, MethodInfo transpiler = null)
+
public static MethodInfo ReversePatch(MethodBase original, HarmonyMethod standin, MethodInfo transpiler = null)
Parameters
diff --git a/docs/api/HarmonyLib.HarmonyException.html b/docs/api/HarmonyLib.HarmonyException.html new file mode 100644 index 00000000..fed788fe --- /dev/null +++ b/docs/api/HarmonyLib.HarmonyException.html @@ -0,0 +1,369 @@ + + + + + + + + Class HarmonyException + + + + + + + + + + + + + + + + +
+
+ +
+
+
+ + + + + +
+
+
+
+ +
+ +
+
+
+ +
+
+
    +
  • +
+
+
+
+
+ +
+ Show / Hide Table of Contents +
+
+
+
+
+
+
+ + +

Class HarmonyException +

+

HarmonyException wraps IL compile errors (only mono) containing detailed information about the failure

+
+
+
+
Inheritance
+
System.Object
+
System.Exception
+
HarmonyException
+
+
+
Implements
+
System.Runtime.Serialization.ISerializable
+
System.Runtime.InteropServices._Exception
+
+
+
Inherited Members
+
+ System.Exception.GetBaseException() +
+
+ System.Exception.ToString() +
+
+ System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) +
+
+ System.Exception.GetType() +
+
+ System.Exception.Message +
+
+ System.Exception.Data +
+
+ System.Exception.InnerException +
+
+ System.Exception.TargetSite +
+
+ System.Exception.StackTrace +
+
+ System.Exception.HelpLink +
+
+ System.Exception.Source +
+
+ System.Exception.HResult +
+
+ System.Object.Equals(System.Object) +
+
+ System.Object.Equals(System.Object, System.Object) +
+
+ System.Object.ReferenceEquals(System.Object, System.Object) +
+
+ System.Object.GetHashCode() +
+
+ System.Object.MemberwiseClone() +
+
+
Namespace: HarmonyLib
+
Assembly: 0Harmony.dll
+
Syntax
+
+
[Serializable]
+public class HarmonyException : Exception, ISerializable, _Exception
+
+

Constructors +

+ + | + Improve this Doc + + + View Source + + +

HarmonyException(SerializationInfo, StreamingContext)

+

Default serialization constructor (not implemented)

+
+
+
Declaration
+
+
protected HarmonyException(SerializationInfo serializationInfo, StreamingContext streamingContext)
+
+
Parameters
+
+ + + + + + + + + + + + + + + + + + + +
TypeNameDescription
System.Runtime.Serialization.SerializationInfoserializationInfo

The info

+
System.Runtime.Serialization.StreamingContextstreamingContext

The context

+
+

Methods +

+ + | + Improve this Doc + + + View Source + + +

GetErrorIndex()

+

Get the index of the errornous IL instruction

+
+
+
Declaration
+
+
public int GetErrorIndex()
+
+
Returns
+ + + + + + + + + + + + + +
TypeDescription
System.Int32

The index into the list of instructions or -1 if not found

+
+ + | + Improve this Doc + + + View Source + + +

GetErrorOffset()

+

Get the error offset of the errornous IL instruction

+
+
+
Declaration
+
+
public int GetErrorOffset()
+
+
Returns
+ + + + + + + + + + + + + +
TypeDescription
System.Int32

The offset

+
+ + | + Improve this Doc + + + View Source + + +

GetInstructions()

+

Get a list of IL instructions without offsets

+
+
+
Declaration
+
+
public List<CodeInstruction> GetInstructions()
+
+
Returns
+ + + + + + + + + + + + + +
TypeDescription
System.Collections.Generic.List<CodeInstruction>
+ + | + Improve this Doc + + + View Source + + +

GetInstructionsWithOffsets()

+

Get a list of IL instructions in pairs of offset+code

+
+
+
Declaration
+
+
public List<KeyValuePair<int, CodeInstruction>> GetInstructionsWithOffsets()
+
+
Returns
+ + + + + + + + + + + + + +
TypeDescription
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Int32, CodeInstruction>>
+

Implements

+
+ System.Runtime.Serialization.ISerializable +
+
+ System.Runtime.InteropServices._Exception +
+ + + +
+
+
+
    +
  • + Improve this Doc +
  • +
  • + View Source +
  • +
+
+
+ +
+
+
+ + + +
+
+
+
+ + Back to top + + + Generated by DocFX +
+
+
+ + + + + + + diff --git a/docs/api/HarmonyLib.PatchClassProcessor.html b/docs/api/HarmonyLib.PatchClassProcessor.html index 1fc550e6..f607f830 100644 --- a/docs/api/HarmonyLib.PatchClassProcessor.html +++ b/docs/api/HarmonyLib.PatchClassProcessor.html @@ -118,7 +118,7 @@

Constructors Improve this Doc - View Source + View Source

PatchClassProcessor(Harmony, Type)

@@ -160,7 +160,7 @@

Methods Improve this Doc - View Source + View Source

Patch()

@@ -198,7 +198,7 @@
Returns
Improve this Doc
  • - View Source + View Source
  • diff --git a/docs/api/HarmonyLib.html b/docs/api/HarmonyLib.html index 4500e9ee..6641dd4d 100644 --- a/docs/api/HarmonyLib.html +++ b/docs/api/HarmonyLib.html @@ -127,6 +127,9 @@

    HarmonyCleanup

    HarmonyDebug

    A Harmony annotation

    +
    +

    HarmonyException

    +

    HarmonyException wraps IL compile errors (only mono) containing detailed information about the failure

    HarmonyFinalizer

    Specifies the Finalizer function in a patch class

    diff --git a/docs/api/toc.html b/docs/api/toc.html index a501f2fd..ddacd18c 100644 --- a/docs/api/toc.html +++ b/docs/api/toc.html @@ -86,6 +86,9 @@
  • HarmonyDebug
  • +
  • + HarmonyException +
  • HarmonyFinalizer
  • diff --git a/docs/manifest.json b/docs/manifest.json index d6a112a7..9f87a2cc 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -201,7 +201,7 @@ "output": { ".html": { "relative_path": "api/HarmonyLib.Harmony.html", - "hash": "6ssbmHSz4GuFHjNbGY828g==" + "hash": "d1IeXHO12f8kSdDyKpZ2Iw==" } }, "is_incremental": false, @@ -279,6 +279,18 @@ "is_incremental": false, "version": "" }, + { + "type": "ManagedReference", + "source_relative_path": "api/HarmonyLib.HarmonyException.yml", + "output": { + ".html": { + "relative_path": "api/HarmonyLib.HarmonyException.html", + "hash": "3WSPRpXMqGjXZKZYIRcfZg==" + } + }, + "is_incremental": false, + "version": "" + }, { "type": "ManagedReference", "source_relative_path": "api/HarmonyLib.HarmonyFinalizer.yml", @@ -549,7 +561,7 @@ "output": { ".html": { "relative_path": "api/HarmonyLib.PatchClassProcessor.html", - "hash": "DbdHLUmTPMXXrODbdRVSqQ==" + "hash": "F54kZXX8cJsGhYiIPNjRZw==" } }, "is_incremental": false, @@ -681,7 +693,7 @@ "output": { ".html": { "relative_path": "api/HarmonyLib.html", - "hash": "I+ytDjNOelRPePF+nwW78g==" + "hash": "t6HwYbmqFoQMtl678BZIfg==" } }, "is_incremental": false, @@ -705,7 +717,7 @@ "output": { ".html": { "relative_path": "api/toc.html", - "hash": "J7j0qb+xPfZCpUuieMVWAw==" + "hash": "mO5rimXWL+UH9dxUZctRjA==" } }, "is_incremental": false, @@ -974,9 +986,9 @@ "full_build_reason_code": "NoAvailableBuildCache" }, "processors": { - "TocDocumentProcessor": { + "ResourceDocumentProcessor": { "can_incremental": false, - "details": "Processor TocDocumentProcessor cannot support incremental build because the processor doesn't implement ISupportIncrementalDocumentProcessor interface.", + "details": "Processor ResourceDocumentProcessor cannot support incremental build because the processor doesn't implement ISupportIncrementalDocumentProcessor interface.", "incrementalPhase": "build", "total_file_count": 0, "skipped_file_count": 0 @@ -987,17 +999,17 @@ "total_file_count": 16, "skipped_file_count": 0 }, - "ManagedReferenceDocumentProcessor": { + "TocDocumentProcessor": { "can_incremental": false, + "details": "Processor TocDocumentProcessor cannot support incremental build because the processor doesn't implement ISupportIncrementalDocumentProcessor interface.", "incrementalPhase": "build", - "total_file_count": 57, + "total_file_count": 0, "skipped_file_count": 0 }, - "ResourceDocumentProcessor": { + "ManagedReferenceDocumentProcessor": { "can_incremental": false, - "details": "Processor ResourceDocumentProcessor cannot support incremental build because the processor doesn't implement ISupportIncrementalDocumentProcessor interface.", "incrementalPhase": "build", - "total_file_count": 0, + "total_file_count": 58, "skipped_file_count": 0 } } diff --git a/docs/xrefmap.yml b/docs/xrefmap.yml index 723a2e3e..39642a8d 100644 --- a/docs/xrefmap.yml +++ b/docs/xrefmap.yml @@ -2578,6 +2578,77 @@ references: isSpec: "True" fullName: HarmonyLib.HarmonyDebug.HarmonyDebug nameWithType: HarmonyDebug.HarmonyDebug +- uid: HarmonyLib.HarmonyException + name: HarmonyException + href: api/HarmonyLib.HarmonyException.html + commentId: T:HarmonyLib.HarmonyException + fullName: HarmonyLib.HarmonyException + nameWithType: HarmonyException +- uid: HarmonyLib.HarmonyException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) + name: HarmonyException(SerializationInfo, StreamingContext) + href: api/HarmonyLib.HarmonyException.html#HarmonyLib_HarmonyException__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_ + commentId: M:HarmonyLib.HarmonyException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) + fullName: HarmonyLib.HarmonyException.HarmonyException(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) + nameWithType: HarmonyException.HarmonyException(SerializationInfo, StreamingContext) +- uid: HarmonyLib.HarmonyException.#ctor* + name: HarmonyException + href: api/HarmonyLib.HarmonyException.html#HarmonyLib_HarmonyException__ctor_ + commentId: Overload:HarmonyLib.HarmonyException.#ctor + isSpec: "True" + fullName: HarmonyLib.HarmonyException.HarmonyException + nameWithType: HarmonyException.HarmonyException +- uid: HarmonyLib.HarmonyException.GetErrorIndex + name: GetErrorIndex() + href: api/HarmonyLib.HarmonyException.html#HarmonyLib_HarmonyException_GetErrorIndex + commentId: M:HarmonyLib.HarmonyException.GetErrorIndex + fullName: HarmonyLib.HarmonyException.GetErrorIndex() + nameWithType: HarmonyException.GetErrorIndex() +- uid: HarmonyLib.HarmonyException.GetErrorIndex* + name: GetErrorIndex + href: api/HarmonyLib.HarmonyException.html#HarmonyLib_HarmonyException_GetErrorIndex_ + commentId: Overload:HarmonyLib.HarmonyException.GetErrorIndex + isSpec: "True" + fullName: HarmonyLib.HarmonyException.GetErrorIndex + nameWithType: HarmonyException.GetErrorIndex +- uid: HarmonyLib.HarmonyException.GetErrorOffset + name: GetErrorOffset() + href: api/HarmonyLib.HarmonyException.html#HarmonyLib_HarmonyException_GetErrorOffset + commentId: M:HarmonyLib.HarmonyException.GetErrorOffset + fullName: HarmonyLib.HarmonyException.GetErrorOffset() + nameWithType: HarmonyException.GetErrorOffset() +- uid: HarmonyLib.HarmonyException.GetErrorOffset* + name: GetErrorOffset + href: api/HarmonyLib.HarmonyException.html#HarmonyLib_HarmonyException_GetErrorOffset_ + commentId: Overload:HarmonyLib.HarmonyException.GetErrorOffset + isSpec: "True" + fullName: HarmonyLib.HarmonyException.GetErrorOffset + nameWithType: HarmonyException.GetErrorOffset +- uid: HarmonyLib.HarmonyException.GetInstructions + name: GetInstructions() + href: api/HarmonyLib.HarmonyException.html#HarmonyLib_HarmonyException_GetInstructions + commentId: M:HarmonyLib.HarmonyException.GetInstructions + fullName: HarmonyLib.HarmonyException.GetInstructions() + nameWithType: HarmonyException.GetInstructions() +- uid: HarmonyLib.HarmonyException.GetInstructions* + name: GetInstructions + href: api/HarmonyLib.HarmonyException.html#HarmonyLib_HarmonyException_GetInstructions_ + commentId: Overload:HarmonyLib.HarmonyException.GetInstructions + isSpec: "True" + fullName: HarmonyLib.HarmonyException.GetInstructions + nameWithType: HarmonyException.GetInstructions +- uid: HarmonyLib.HarmonyException.GetInstructionsWithOffsets + name: GetInstructionsWithOffsets() + href: api/HarmonyLib.HarmonyException.html#HarmonyLib_HarmonyException_GetInstructionsWithOffsets + commentId: M:HarmonyLib.HarmonyException.GetInstructionsWithOffsets + fullName: HarmonyLib.HarmonyException.GetInstructionsWithOffsets() + nameWithType: HarmonyException.GetInstructionsWithOffsets() +- uid: HarmonyLib.HarmonyException.GetInstructionsWithOffsets* + name: GetInstructionsWithOffsets + href: api/HarmonyLib.HarmonyException.html#HarmonyLib_HarmonyException_GetInstructionsWithOffsets_ + commentId: Overload:HarmonyLib.HarmonyException.GetInstructionsWithOffsets + isSpec: "True" + fullName: HarmonyLib.HarmonyException.GetInstructionsWithOffsets + nameWithType: HarmonyException.GetInstructionsWithOffsets - uid: HarmonyLib.HarmonyFinalizer name: HarmonyFinalizer href: api/HarmonyLib.HarmonyFinalizer.html