From 5c8de8e0cec8caa2ebc79b26444296f1eddc6a84 Mon Sep 17 00:00:00 2001 From: Kurpanik <71767601+Kurpanik@users.noreply.github.com> Date: Wed, 24 Jul 2024 08:54:37 +0200 Subject: [PATCH] Remove Runtime.Serialization from custom Exceptions --- src/Gldf.Net/Exceptions/GldfContainerException.cs | 5 ----- src/Gldf.Net/Exceptions/GldfException.cs | 5 ----- src/Gldf.Net/Exceptions/GldfValidationException.cs | 5 ----- src/Gldf.Net/Exceptions/RootNotFoundException.cs | 5 ----- src/Gldf.Net/Exceptions/UnreadableZipException.cs | 5 ----- 5 files changed, 25 deletions(-) diff --git a/src/Gldf.Net/Exceptions/GldfContainerException.cs b/src/Gldf.Net/Exceptions/GldfContainerException.cs index f818ef9..5dea86f 100644 --- a/src/Gldf.Net/Exceptions/GldfContainerException.cs +++ b/src/Gldf.Net/Exceptions/GldfContainerException.cs @@ -1,6 +1,5 @@ using System; using System.Diagnostics.CodeAnalysis; -using System.Runtime.Serialization; namespace Gldf.Net.Exceptions; @@ -18,8 +17,4 @@ public GldfContainerException(string message) : base(message) public GldfContainerException(string message, Exception inner) : base(message, inner) { } - - protected GldfContainerException(SerializationInfo info, StreamingContext context) : base(info, context) - { - } } \ No newline at end of file diff --git a/src/Gldf.Net/Exceptions/GldfException.cs b/src/Gldf.Net/Exceptions/GldfException.cs index cd855d4..2e00789 100644 --- a/src/Gldf.Net/Exceptions/GldfException.cs +++ b/src/Gldf.Net/Exceptions/GldfException.cs @@ -1,6 +1,5 @@ using System; using System.Diagnostics.CodeAnalysis; -using System.Runtime.Serialization; namespace Gldf.Net.Exceptions; @@ -18,8 +17,4 @@ public GldfException(string message) : base(message) public GldfException(string message, Exception inner) : base(message, inner) { } - - protected GldfException(SerializationInfo info, StreamingContext context) : base(info, context) - { - } } \ No newline at end of file diff --git a/src/Gldf.Net/Exceptions/GldfValidationException.cs b/src/Gldf.Net/Exceptions/GldfValidationException.cs index 9ee4b72..c78544a 100644 --- a/src/Gldf.Net/Exceptions/GldfValidationException.cs +++ b/src/Gldf.Net/Exceptions/GldfValidationException.cs @@ -1,6 +1,5 @@ using System; using System.Diagnostics.CodeAnalysis; -using System.Runtime.Serialization; namespace Gldf.Net.Exceptions; @@ -18,8 +17,4 @@ public GldfValidationException(string message) : base(message) public GldfValidationException(string message, Exception inner) : base(message, inner) { } - - protected GldfValidationException(SerializationInfo info, StreamingContext context) : base(info, context) - { - } } \ No newline at end of file diff --git a/src/Gldf.Net/Exceptions/RootNotFoundException.cs b/src/Gldf.Net/Exceptions/RootNotFoundException.cs index 4e0fc7c..955193b 100644 --- a/src/Gldf.Net/Exceptions/RootNotFoundException.cs +++ b/src/Gldf.Net/Exceptions/RootNotFoundException.cs @@ -1,6 +1,5 @@ using System; using System.Diagnostics.CodeAnalysis; -using System.Runtime.Serialization; namespace Gldf.Net.Exceptions; @@ -18,8 +17,4 @@ public RootNotFoundException(string message) : base(message) public RootNotFoundException(string message, Exception inner) : base(message, inner) { } - - protected RootNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) - { - } } \ No newline at end of file diff --git a/src/Gldf.Net/Exceptions/UnreadableZipException.cs b/src/Gldf.Net/Exceptions/UnreadableZipException.cs index dfc54d0..4495230 100644 --- a/src/Gldf.Net/Exceptions/UnreadableZipException.cs +++ b/src/Gldf.Net/Exceptions/UnreadableZipException.cs @@ -1,6 +1,5 @@ using System; using System.Diagnostics.CodeAnalysis; -using System.Runtime.Serialization; namespace Gldf.Net.Exceptions; @@ -18,8 +17,4 @@ public UnreadableZipException(string message) : base(message) public UnreadableZipException(string message, Exception inner) : base(message, inner) { } - - protected UnreadableZipException(SerializationInfo info, StreamingContext context) : base(info, context) - { - } } \ No newline at end of file