AspNet5.Filters.ExceptionFilters.CustomTwoLoggingExceptionFilter.handleCustomException C# (CSharp) 메소드

handleCustomException() 개인적인 메소드

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