Fixed missing proper exception in AIProvider
This commit is contained in:
7
src/Server/Exceptions/GeneralExceptions.cs
Normal file
7
src/Server/Exceptions/GeneralExceptions.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Server.Exceptions;
|
||||
|
||||
public class ProbMethodNotFoundException(string probMethod) : Exception($"Unknown probMethod name {probMethod}") { }
|
||||
|
||||
public class SimilarityMethodNotFoundException(string similarityMethod) : Exception($"Unknown similarityMethod name \"{similarityMethod}\"") { }
|
||||
|
||||
public class JSONPathSelectionException(string path, string testedContent) : Exception($"Unable to select tokens using JSONPath {path} for string: {testedContent}.") { }
|
||||
Reference in New Issue
Block a user