From 2f4a506077c9a2d3ad769803fae4b22515243eb1 Mon Sep 17 00:00:00 2001 From: LD-Reborn Date: Sat, 13 Dec 2025 17:24:12 +0100 Subject: [PATCH] Fixed missing proper SearchdomainNotFoundException in DatabaseHelper --- src/Server/Helper/DatabaseHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Server/Helper/DatabaseHelper.cs b/src/Server/Helper/DatabaseHelper.cs index 4079470..7113f08 100644 --- a/src/Server/Helper/DatabaseHelper.cs +++ b/src/Server/Helper/DatabaseHelper.cs @@ -1,5 +1,6 @@ using System.Data.Common; using System.Text; +using Server.Exceptions; namespace Server.Helper; @@ -101,7 +102,7 @@ public class DatabaseHelper(ILogger logger) else { _logger.LogError("Unable to retrieve searchdomain ID for {searchdomain}", [searchdomain]); - throw new Exception($"Unable to retrieve searchdomain ID for {searchdomain}"); + throw new SearchdomainNotFoundException(searchdomain); } } }