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