From e2ca249d1387e9ec0df032b00ee9e8f54f152d92 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 22 Jan 2026 09:31:41 +0100 Subject: [PATCH] Add SQL exception 50000 to handled exception numbers Updated appsettings.json to include 50000 in the SqlExceptionNumber array, allowing the application to recognize and handle SQL exceptions with this number in addition to existing ones. This change can be applied at runtime without requiring a restart. --- src/ReC.API/appsettings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ReC.API/appsettings.json b/src/ReC.API/appsettings.json index b46c061..769ff22 100644 --- a/src/ReC.API/appsettings.json +++ b/src/ReC.API/appsettings.json @@ -8,9 +8,10 @@ "RecAction": { "MaxConcurrentInvocations": 5 }, + // SqlException numbers can be updated at runtime; no restart required. "SqlException": { // https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlexception.number - "SqlExceptionNumber": [ 515, 547, 2601, 2627 ] + "SqlExceptionNumber": [ 515, 547, 2601, 2627, 50000 ] }, "AddedWho": "ReC.API", "FakeProfileId": 2