summary refs log tree commit diff
path: root/crypto/src/openpgp/PgpDataValidationException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/openpgp/PgpDataValidationException.cs')
-rw-r--r--crypto/src/openpgp/PgpDataValidationException.cs29
1 files changed, 21 insertions, 8 deletions
diff --git a/crypto/src/openpgp/PgpDataValidationException.cs b/crypto/src/openpgp/PgpDataValidationException.cs

index cec5c9b68..7718ab26c 100644 --- a/crypto/src/openpgp/PgpDataValidationException.cs +++ b/crypto/src/openpgp/PgpDataValidationException.cs
@@ -1,18 +1,31 @@ using System; +using System.Runtime.Serialization; namespace Org.BouncyCastle.Bcpg.OpenPgp { - /// <remarks> - /// Thrown if the IV at the start of a data stream indicates the wrong key is being used. - /// </remarks> -#if !PORTABLE + /// <summary>Thrown if the IV at the start of a data stream indicates the wrong key is being used.</summary> [Serializable] -#endif public class PgpDataValidationException : PgpException { - public PgpDataValidationException() : base() {} - public PgpDataValidationException(string message) : base(message) {} - public PgpDataValidationException(string message, Exception exception) : base(message, exception) {} + public PgpDataValidationException() + : base() + { + } + + public PgpDataValidationException(string message) + : base(message) + { + } + + public PgpDataValidationException(string message, Exception innerException) + : base(message, innerException) + { + } + + protected PgpDataValidationException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } } }