3 writes to Exception
Microsoft.AspNetCore.Mvc.Core.Test (2)
Filters\MiddlewareFilterBuilderTest.cs (2)
134
Exception
= new InvalidOperationException("Error!!!"),
197
Exception
= thrownException,
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonResourceInvokerTest.cs (1)
1395
context.
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)
79
if (resourceExecutedContext.
Exception
!= null)
83
throw resourceExecutedContext.
Exception
;
Infrastructure\ResourceInvoker.cs (2)
1456
if (context.
Exception
!= null)
1458
throw context.
Exception
;
Microsoft.AspNetCore.Mvc.Core.Test (3)
Infrastructure\ControllerActionInvokerTest.cs (3)
757
Assert.Same(expected, context.
Exception
);
796
Assert.Same(expected, context.
Exception
);
814
Assert.Same(Exception, context.
Exception
);
Microsoft.AspNetCore.Mvc.Core.TestCommon (7)
CommonResourceInvokerTest.cs (7)
1267
Assert.Null(context.
Exception
);
1333
Assert.Same(Exception, context.
Exception
);
1372
Assert.Same(expected, context.
Exception
);
1392
Assert.Same(Exception, context.
Exception
);
1442
Assert.Same(expected, context.
Exception
);
1478
Assert.Same(expected, context.
Exception
);
1514
Assert.Same(expected, context.
Exception
);
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\PageActionInvokerTest.cs (3)
1287
Assert.Same(expected, context.
Exception
);
1326
Assert.Same(expected, context.
Exception
);
1344
Assert.Same(Exception, context.
Exception
);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\SaveTempDataFilter.cs (1)
84
if (!context.HttpContext.Response.HasStarted && context.
Exception
!= null)