summary refs log tree commit diff
path: root/crypto/src/util/MemoableResetException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/util/MemoableResetException.cs')
-rw-r--r--crypto/src/util/MemoableResetException.cs35
1 files changed, 23 insertions, 12 deletions
diff --git a/crypto/src/util/MemoableResetException.cs b/crypto/src/util/MemoableResetException.cs

index 99554f6c2..8a4deb142 100644 --- a/crypto/src/util/MemoableResetException.cs +++ b/crypto/src/util/MemoableResetException.cs
@@ -1,27 +1,38 @@ using System; +using System.Runtime.Serialization; namespace Org.BouncyCastle.Utilities { - /** + /** * Exception to be thrown on a failure to reset an object implementing Memoable. * <p> * The exception extends InvalidCastException to enable users to have a single handling case, * only introducing specific handling of this one if required. * </p> */ - public class MemoableResetException + [Serializable] + public class MemoableResetException : InvalidCastException { - /** - * Basic Constructor. - * - * @param msg message to be associated with this exception. - */ - public MemoableResetException(string msg) - : base(msg) - { - } - } + public MemoableResetException() + : base() + { + } + public MemoableResetException(string message) + : base(message) + { + } + + public MemoableResetException(string message, Exception innerException) + : base(message, innerException) + { + } + + protected MemoableResetException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + } }