Skip to content

Commit

Permalink
Update BadPatientIDException.cs
Browse files Browse the repository at this point in the history
Mark exception serialization code as Obsolete
  • Loading branch information
jas88 committed May 23, 2024
1 parent d794e1a commit c171a00
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Runtime.Serialization;

namespace Microservices.IdentifierMapper.Messaging
Expand All @@ -21,6 +21,7 @@ public BadPatientIDException(string message, Exception innerException) : base(me
{
}

[Obsolete("Serialising exceptions using legacy code is bad")]
protected BadPatientIDException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
Expand Down

0 comments on commit c171a00

Please sign in to comment.