From f64b37993aaec3f2baaab236af58c295b06c9f92 Mon Sep 17 00:00:00 2001 From: Tim Whittington Date: Sat, 12 Oct 2013 19:46:25 +1300 Subject: Port Memoable digest support from bc-java. --- crypto/src/util/MemoableResetException.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 crypto/src/util/MemoableResetException.cs (limited to 'crypto/src/util/MemoableResetException.cs') diff --git a/crypto/src/util/MemoableResetException.cs b/crypto/src/util/MemoableResetException.cs new file mode 100644 index 000000000..d9542dab2 --- /dev/null +++ b/crypto/src/util/MemoableResetException.cs @@ -0,0 +1,27 @@ +using System; + +namespace Org.BouncyCastle.Utilities +{ + /** + * Exception to be thrown on a failure to reset an object implementing Memoable. + *

+ * The exception extends ClassCastException to enable users to have a single handling case, + * only introducing specific handling of this one if required. + *

+ */ + public class MemoableResetException + : InvalidCastException + { + /** + * Basic Constructor. + * + * @param msg message to be associated with this exception. + */ + public MemoableResetException(string msg) + : base(msg) + { + } + } + +} + -- cgit 1.4.1