Improved exception handling for indexing

This commit is contained in:
2025-12-13 16:12:57 +01:00
parent 02bdf4ad10
commit 94252fe63e
4 changed files with 40 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
using System.Numerics.Tensors;
using System.Text.Json;
using Server.Exceptions;
namespace Server;
@@ -15,7 +15,7 @@ public class ProbMethod
if (probMethod is null)
{
logger.LogError("Unable to retrieve probMethod {name}", [name]);
throw new Exception("Unable to retrieve probMethod");
throw new ProbMethodNotFoundException(name);
}
method = probMethod;
}