From b72579c4b1200459f959bcd6a25364e239420573 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 24 Jun 2022 15:07:29 +0700 Subject: Cleanup Exception classes --- crypto/src/pqc/crypto/lms/LMSException.cs | 34 +++++++++++++++++++------------ 1 file changed, 21 insertions(+), 13 deletions(-) (limited to 'crypto/src/pqc') diff --git a/crypto/src/pqc/crypto/lms/LMSException.cs b/crypto/src/pqc/crypto/lms/LMSException.cs index 5f8f7b9d9..c9c286b7f 100644 --- a/crypto/src/pqc/crypto/lms/LMSException.cs +++ b/crypto/src/pqc/crypto/lms/LMSException.cs @@ -1,22 +1,30 @@ using System; +using System.Runtime.Serialization; namespace Org.BouncyCastle.Pqc.Crypto.Lms { + [Serializable] public class LMSException : Exception { - public LMSException() - { - } + public LMSException() + : base() + { + } - public LMSException(string message) - : base(message) - { - } + public LMSException(string message) + : base(message) + { + } - public LMSException(string message, Exception cause) - : base(message, cause) - { - } - } -} \ No newline at end of file + public LMSException(string message, Exception innerException) + : base(message, innerException) + { + } + + protected LMSException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + } +} -- cgit 1.5.1