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); } } }