Skip to content

Commit

Permalink
refactor: make NonStateException compliant to ISerializable (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr00d authored Sep 18, 2023
1 parent 84b5978 commit a81aeca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Vonage.Common/Monads/Exceptions/NoneStateException.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System;
using System.Runtime.Serialization;

namespace Vonage.Common.Monads.Exceptions;

Expand All @@ -15,4 +16,9 @@ public NoneStateException()
: base("State is None.")
{
}

protected NoneStateException(SerializationInfo info, StreamingContext context)
: this()
{
}
}

0 comments on commit a81aeca

Please sign in to comment.