diff options
Diffstat (limited to 'crypto/src/asn1/Asn1ParsingException.cs')
-rw-r--r-- | crypto/src/asn1/Asn1ParsingException.cs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/crypto/src/asn1/Asn1ParsingException.cs b/crypto/src/asn1/Asn1ParsingException.cs index 294e4c2c9..2b54ae0a1 100644 --- a/crypto/src/asn1/Asn1ParsingException.cs +++ b/crypto/src/asn1/Asn1ParsingException.cs @@ -1,10 +1,9 @@ using System; +using System.Runtime.Serialization; namespace Org.BouncyCastle.Asn1 { -#if !PORTABLE [Serializable] -#endif public class Asn1ParsingException : InvalidOperationException { @@ -13,16 +12,18 @@ namespace Org.BouncyCastle.Asn1 { } - public Asn1ParsingException( - string message) + public Asn1ParsingException(string message) : base(message) { } - public Asn1ParsingException( - string message, - Exception exception) - : base(message, exception) + public Asn1ParsingException(string message, Exception innerException) + : base(message, innerException) + { + } + + protected Asn1ParsingException(SerializationInfo info, StreamingContext context) + : base(info, context) { } } |