1 files changed, 21 insertions, 13 deletions
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)
+ {
+ }
+ }
+}
|