3 writes to Exception
Microsoft.AspNetCore.Mvc.Core.Test (2)
Filters\MiddlewareFilterBuilderTest.cs (2)
134Exception = new InvalidOperationException("Error!!!"), 197Exception = thrownException,
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonResourceInvokerTest.cs (1)
1395context.Exception = null;
24 references to Exception
Microsoft.AspNetCore.Mvc.Abstractions (6)
Filters\ResourceExecutedContext.cs (6)
34/// Gets or set the current <see cref="Exception"/>. 38/// Setting <see cref="Exception"/> or <see cref="ExceptionDispatchInfo"/> to <c>null</c> will treat 67/// Gets or set the current <see cref="Exception"/>. 71/// Setting <see cref="Exception"/> or <see cref="ExceptionDispatchInfo"/> to <c>null</c> will treat 94/// Gets or sets a value indicating whether or not the current <see cref="Exception"/> has been handled. 97/// If <c>false</c> the <see cref="Exception"/> will be rethrown by the runtime after resource filters
Microsoft.AspNetCore.Mvc.Core (4)
Filters\MiddlewareFilterBuilder.cs (2)
79if (resourceExecutedContext.Exception != null) 83throw resourceExecutedContext.Exception;
Infrastructure\ResourceInvoker.cs (2)
1456if (context.Exception != null) 1458throw context.Exception;
Microsoft.AspNetCore.Mvc.Core.Test (3)
Infrastructure\ControllerActionInvokerTest.cs (3)
757Assert.Same(expected, context.Exception); 796Assert.Same(expected, context.Exception); 814Assert.Same(Exception, context.Exception);
Microsoft.AspNetCore.Mvc.Core.TestCommon (7)
CommonResourceInvokerTest.cs (7)
1267Assert.Null(context.Exception); 1333Assert.Same(Exception, context.Exception); 1372Assert.Same(expected, context.Exception); 1392Assert.Same(Exception, context.Exception); 1442Assert.Same(expected, context.Exception); 1478Assert.Same(expected, context.Exception); 1514Assert.Same(expected, context.Exception);
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\PageActionInvokerTest.cs (3)
1287Assert.Same(expected, context.Exception); 1326Assert.Same(expected, context.Exception); 1344Assert.Same(Exception, context.Exception);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\SaveTempDataFilter.cs (1)
84if (!context.HttpContext.Response.HasStarted && context.Exception != null)