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