diff options
Diffstat (limited to 'crypto/src/pkcs/PkcsIOException.cs')
-rw-r--r-- | crypto/src/pkcs/PkcsIOException.cs | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/crypto/src/pkcs/PkcsIOException.cs b/crypto/src/pkcs/PkcsIOException.cs index 889b0fcb0..4523ac286 100644 --- a/crypto/src/pkcs/PkcsIOException.cs +++ b/crypto/src/pkcs/PkcsIOException.cs @@ -1,19 +1,32 @@ using System; using System.IO; +using System.Runtime.Serialization; namespace Org.BouncyCastle.Pkcs { - /// <summary> - /// Base exception for parsing related issues in the PKCS namespace. - /// </summary> - public class PkcsIOException: IOException + /// <summary>Base exception for parsing related issues in the PKCS namespace.</summary> + [Serializable] + public class PkcsIOException + : IOException { - public PkcsIOException(string message) : base(message) - { - } + public PkcsIOException() + : base() + { + } - public PkcsIOException(string message, Exception underlying) : base(message, underlying) - { - } - } + public PkcsIOException(string message) + : base(message) + { + } + + public PkcsIOException(string message, Exception innerException) + : base(message, innerException) + { + } + + protected PkcsIOException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + } } |