private void handleCustomException(ExceptionContext context)
{
if (context.Exception.GetType() == typeof(CustomException))
{
_logger.LogInformation("Handling the custom exception here, will not pass it on to further exception filters");
context.Exception = null;
}
}