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)
+ {
+ }
+ }
}
|