summary refs log tree commit diff
path: root/crypto/src/security/GeneralSecurityException.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-06-24 14:18:43 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-06-24 14:18:43 +0700
commit54fd291cc1f3298abcb66ac67e5a595bc922f7d4 (patch)
treef90ac029ec7954d7165044ed40530d591aeb8cdc /crypto/src/security/GeneralSecurityException.cs
parentUse generics instead of dynamic checks (diff)
downloadBouncyCastle.NET-ed25519-54fd291cc1f3298abcb66ac67e5a595bc922f7d4.tar.xz
Remove certpath from PkixCertPathValidatorException
Diffstat (limited to 'crypto/src/security/GeneralSecurityException.cs')
-rw-r--r--crypto/src/security/GeneralSecurityException.cs15
1 files changed, 8 insertions, 7 deletions
diff --git a/crypto/src/security/GeneralSecurityException.cs b/crypto/src/security/GeneralSecurityException.cs
index c1131f04b..33fd2e543 100644
--- a/crypto/src/security/GeneralSecurityException.cs
+++ b/crypto/src/security/GeneralSecurityException.cs
@@ -1,10 +1,9 @@
 using System;
+using System.Runtime.Serialization;
 
 namespace Org.BouncyCastle.Security
 {
-#if !PORTABLE
     [Serializable]
-#endif
     public class GeneralSecurityException
 		: Exception
 	{
@@ -13,17 +12,19 @@ namespace Org.BouncyCastle.Security
 		{
 		}
 
-		public GeneralSecurityException(
-			string message)
+		public GeneralSecurityException(string message)
 			: base(message)
 		{
 		}
 
-		public GeneralSecurityException(
-			string		message,
-			Exception	exception)
+		public GeneralSecurityException(string message, Exception exception)
 			: base(message, exception)
 		{
 		}
+
+		protected GeneralSecurityException(SerializationInfo info, StreamingContext context)
+			: base(info, context)
+		{
+		}
 	}
 }