try {
var filterInput = """FirstName == "Jane" && Age > 10""";
var people = _dbContext.People
.ApplyQueryKitFilter(filterInput)
.ToList();
}
catch (QueryKitException ex)
{
// Handle exception
}
This still allows for more fine grained error handling if needed in the same way as before, but just for the use case where a failed filter is handled the same way for all scenarios it's a bit easier.
Hi, thanks for this project, it's a great tool!
It would be nice if instead of having to catch each exception QueryKit can throw individually there was a base exception which could be caught.
So instead of this:
We could do this:
This still allows for more fine grained error handling if needed in the same way as before, but just for the use case where a failed filter is handled the same way for all scenarios it's a bit easier.