summary refs log tree commit diff
path: root/crypto/src/openpgp/PgpException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/openpgp/PgpException.cs')
-rw-r--r--crypto/src/openpgp/PgpException.cs27
1 files changed, 21 insertions, 6 deletions
diff --git a/crypto/src/openpgp/PgpException.cs b/crypto/src/openpgp/PgpException.cs
index dc0f3482b..cb5ea3569 100644
--- a/crypto/src/openpgp/PgpException.cs
+++ b/crypto/src/openpgp/PgpException.cs
@@ -1,16 +1,31 @@
 using System;
+using System.Runtime.Serialization;
 
 namespace Org.BouncyCastle.Bcpg.OpenPgp
 {
-	/// <remarks>Generic exception class for PGP encoding/decoding problems.</remarks>
-#if !PORTABLE
+	/// <summary>Generic exception class for PGP encoding/decoding problems.</summary>
     [Serializable]
-#endif
     public class PgpException
 		: Exception
 	{
-		public PgpException() : base() {}
-		public PgpException(string message) : base(message) {}
-		public PgpException(string message, Exception exception) : base(message, exception) {}
+		public PgpException()
+			: base()
+		{
+		}
+
+		public PgpException(string message)
+			: base(message)
+		{
+		}
+
+		public PgpException(string message, Exception innerException)
+			: base(message, innerException)
+		{
+		}
+
+		protected PgpException(SerializationInfo info, StreamingContext context)
+			: base(info, context)
+		{
+		}
 	}
 }