2 implementations of OnException
Microsoft.AspNetCore.Mvc.Core (1)
Filters\ExceptionFilterAttribute.cs (1)
26public virtual void OnException(ExceptionContext context)
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1818public void OnException(ExceptionContext context)
34 references to OnException
Microsoft.AspNetCore.Mvc.Core (3)
Diagnostics\MvcDiagnostics.cs (2)
522/// An <see cref="EventData"/> that occurs before <see cref="IExceptionFilter.OnException(ExceptionContext)"/>. 573/// An <see cref="EventData"/> that occurs after <see cref="IExceptionFilter.OnException(ExceptionContext)"/>.
Infrastructure\ResourceInvoker.cs (1)
748filter.OnException(exceptionContext);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\ControllerActionInvokerTest.cs (1)
784.Setup(f => f.OnException(It.IsAny<ExceptionContext>()))
Microsoft.AspNetCore.Mvc.Core.TestCommon (29)
CommonResourceInvokerTest.cs (29)
41.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 50filter.Verify(f => f.OnException(It.IsAny<ExceptionContext>()), Times.Never()); 88.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 92.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 110filter2.Verify(f => f.OnException(It.IsAny<ExceptionContext>()), Times.Once()); 170.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 185f => f.OnException(It.IsAny<ExceptionContext>()), 203.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 223f => f.OnException(It.IsAny<ExceptionContext>()), 237.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 251f => f.OnException(It.IsAny<ExceptionContext>()), 269.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 289f => f.OnException(It.IsAny<ExceptionContext>()), 454.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 469filter2.Verify(f => f.OnException(It.IsAny<ExceptionContext>()), Times.Once()); 479.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 488filter.Verify(f => f.OnException(It.IsAny<ExceptionContext>()), Times.Once()); 503.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 515filter.Verify(f => f.OnException(It.IsAny<ExceptionContext>()), Times.Once()); 531.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 537.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 551filter1.Verify(f => f.OnException(It.IsAny<ExceptionContext>()), Times.Once()); 552filter2.Verify(f => f.OnException(It.IsAny<ExceptionContext>()), Times.Once()); 570exceptionFilter.Verify(f => f.OnException(It.IsAny<ExceptionContext>()), Times.Never()); 695.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 728exceptionFilter.Verify(f => f.OnException(It.IsAny<ExceptionContext>()), Times.Never()); 1254.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 1976.Setup(f => f.OnException(It.IsAny<ExceptionContext>())) 2005.Setup(f => f.OnException(It.IsAny<ExceptionContext>()))
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionInvokerTest.cs (1)
1314.Setup(f => f.OnException(It.IsAny<ExceptionContext>()))