1 write to Exception
Microsoft.AspNetCore.Diagnostics.Abstractions (1)
ErrorContext.cs (1)
21Exception = exception ?? throw new ArgumentNullException(nameof(exception));
15 references to Exception
Microsoft.AspNetCore.Diagnostics (9)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (9)
90Error = errorContext.Exception, 199Debugger.BreakForUserUnhandledException(errorContext.Exception); 211if (errorContext.Exception is ICompilationException compilationException) 216return DisplayRuntimeException(httpContext, errorContext.Exception); 232Exception = errorContext.Exception 238sb.AppendLine(errorContext.Exception.ToString()); 255Title = TypeNameHelper.GetTypeDisplayName(errorContext.Exception.GetType()), 256Detail = errorContext.Exception.Message, 264details: errorContext.Exception.ToString(),
Microsoft.AspNetCore.Diagnostics.Abstractions (2)
ErrorContext.cs (2)
14/// Initializes the ErrorContext with the specified <see cref="HttpContext"/> and <see cref="Exception"/>. 30/// The <see cref="Exception"/> thrown during request processing.
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
DatabaseDeveloperPageExceptionFilter.cs (2)
47var dbException = errorContext.Exception as DbException 48?? errorContext.Exception?.InnerException as DbException;
Microsoft.AspNetCore.Diagnostics.Tests (2)
DeveloperExceptionPageMiddlewareTest.cs (2)
653return context.HttpContext.Response.WriteAsync(context.Exception.Message); 661return context.HttpContext.Response.WriteAsync(context.Exception.ToString());