From 0b5b499401dbd5582a5bef5195bd004f51a7a0e8 Mon Sep 17 00:00:00 2001 From: Adam Nierzad Date: Mon, 11 Feb 2019 14:04:21 +0000 Subject: [PATCH] Improved implementation of IPSpecExistsException. --- .../Exceptions/IPSpecExistsException.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/PolyDeploy/Components/Exceptions/IPSpecExistsException.cs b/PolyDeploy/Components/Exceptions/IPSpecExistsException.cs index 5948ec3..e04b8d4 100644 --- a/PolyDeploy/Components/Exceptions/IPSpecExistsException.cs +++ b/PolyDeploy/Components/Exceptions/IPSpecExistsException.cs @@ -1,9 +1,20 @@ using System; +using System.Runtime.Serialization; namespace Cantarus.Modules.PolyDeploy.Components.Exceptions { - internal class IPSpecExistsException : Exception + [Serializable] + public class IPSpecExistsException : Exception { - public IPSpecExistsException(string message) : base(message) { } + public IPSpecExistsException() { } + + public IPSpecExistsException(string message) + : base(message) { } + + public IPSpecExistsException(string message, Exception innerException) + : base(message, innerException) { } + + public IPSpecExistsException(SerializationInfo info, StreamingContext context) + : base(info, context) { } } }