summary refs log tree commit diff
path: root/crypto/src/pkcs/PkcsException.cs
diff options
context:
space:
mode:
authorRoy Basmacier <roy.basmacier@keyfactor.com>2022-06-24 16:19:02 -0400
committerRoy Basmacier <roy.basmacier@keyfactor.com>2022-06-24 16:19:02 -0400
commit5ce0ecf7d31b462bd14c51a9e1f6514dc188c17c (patch)
tree9236aa449ab6b2c2142f3f8b0065078e125c2603 /crypto/src/pkcs/PkcsException.cs
parentsphincs plus v3.1 (diff)
parentRefactoring (diff)
downloadBouncyCastle.NET-ed25519-5ce0ecf7d31b462bd14c51a9e1f6514dc188c17c.tar.xz
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'crypto/src/pkcs/PkcsException.cs')
-rw-r--r--crypto/src/pkcs/PkcsException.cs36
1 files changed, 23 insertions, 13 deletions
diff --git a/crypto/src/pkcs/PkcsException.cs b/crypto/src/pkcs/PkcsException.cs
index 7a69ff736..ba296882c 100644
--- a/crypto/src/pkcs/PkcsException.cs
+++ b/crypto/src/pkcs/PkcsException.cs
@@ -1,21 +1,31 @@
 using System;
+using System.Runtime.Serialization;
 
 namespace Org.BouncyCastle.Pkcs
 {
-    /// <summary>
-    /// Base exception for PKCS related issues.
-    /// </summary>
-    public class PkcsException
+	/// <summary>Base exception for PKCS related issues.</summary>
+	[Serializable]
+	public class PkcsException
         : Exception
     {
-        public PkcsException(string message)
-            : base(message)
-        {
-        }
+		public PkcsException()
+			: base()
+		{
+		}
 
-        public PkcsException(string message, Exception underlying)
-            : base(message, underlying)
-        {
-        }
-    }
+		public PkcsException(string message)
+			: base(message)
+		{
+		}
+
+		public PkcsException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		protected PkcsException(SerializationInfo info, StreamingContext context)
+			: base(info, context)
+		{
+		}
+	}
 }