14 references to ExceptionHandledType
Microsoft.AspNetCore.Diagnostics (10)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (9)
171var result = ExceptionHandledType.Unhandled; 176result = ExceptionHandledType.ExceptionHandlerService; 182if (result == ExceptionHandledType.Unhandled) 193result = ExceptionHandledType.ExceptionHandlingPath; 198result = ExceptionHandledType.ExceptionHandlerDelegate; 212result = ExceptionHandledType.ProblemDetailsService; 218if (result != ExceptionHandledType.Unhandled || _options.StatusCodeSelector != null || context.Response.StatusCode != StatusCodes.Status404NotFound || _options.AllowStatusCode404Response) 238suppressDiagnostics = result == ExceptionHandledType.ExceptionHandlerService;
ExceptionHandler\ExceptionHandlerSuppressDiagnosticsContext.cs (1)
26public required ExceptionHandledType ExceptionHandledBy { get; init; }
Microsoft.AspNetCore.Diagnostics.Tests (4)
ExceptionHandlerMiddlewareTest.cs (4)
89Assert.Equal(ExceptionHandledType.ProblemDetailsService, suppressContext.ExceptionHandledBy); 117[InlineData(ExceptionHandledType.ExceptionHandlerDelegate, false)] 118[InlineData(ExceptionHandledType.ProblemDetailsService, true)] 119public async Task Invoke_HasExceptionHandler_SuppressDiagnostics_CallbackRun(ExceptionHandledType suppressResult, bool logged)