diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-24 14:18:43 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-24 14:18:43 +0700 |
commit | 54fd291cc1f3298abcb66ac67e5a595bc922f7d4 (patch) | |
tree | f90ac029ec7954d7165044ed40530d591aeb8cdc /crypto/src/security/GeneralSecurityException.cs | |
parent | Use generics instead of dynamic checks (diff) | |
download | BouncyCastle.NET-ed25519-54fd291cc1f3298abcb66ac67e5a595bc922f7d4.tar.xz |
Remove certpath from PkixCertPathValidatorException
Diffstat (limited to 'crypto/src/security/GeneralSecurityException.cs')
-rw-r--r-- | crypto/src/security/GeneralSecurityException.cs | 15 |
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) + { + } } } |