private handleCustomException ( ExceptionContext context ) : void | ||
context | ExceptionContext | |
return | void |
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;
}
}