Skip to content

Commit ac28cab

Browse files
committed
Remove HarmonyException serialization
1 parent 1664074 commit ac28cab

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

Harmony/Public/HarmonyException.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace HarmonyLib
77
{
88
/// <summary>Under Mono, HarmonyException wraps IL compile errors with detailed information about the failure</summary>
99
///
10-
[Serializable]
1110
public class HarmonyException : Exception
1211
{
1312
Dictionary<int, CodeInstruction> instructions;
@@ -17,12 +16,6 @@ internal HarmonyException() { }
1716
internal HarmonyException(string message) : base(message) { }
1817
internal HarmonyException(string message, Exception innerException) : base(message, innerException) { }
1918

20-
/// <summary>Default serialization constructor (not implemented)</summary>
21-
/// <param name="serializationInfo">The info</param>
22-
/// <param name="streamingContext">The context</param>
23-
///
24-
protected HarmonyException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) => throw new NotImplementedException();
25-
2619
internal HarmonyException(Exception innerException, Dictionary<int, CodeInstruction> instructions, int errorOffset) : base("IL Compile Error", innerException)
2720
{
2821
this.instructions = instructions;

0 commit comments

Comments
 (0)