From 54fd291cc1f3298abcb66ac67e5a595bc922f7d4 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 24 Jun 2022 14:18:43 +0700 Subject: Remove certpath from PkixCertPathValidatorException --- crypto/src/security/GeneralSecurityException.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'crypto/src/security') 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) + { + } } } -- cgit 1.5.1