These are the easiest to understand; whenever there's an exception under the scope of an exception filter (action, controller, or global), its OnException method is called. This is pretty useful for logging errors, as you can imagine.
The OnException method takes a parameter of the ExceptionContext type:
- Exception (Exception): Any exception thrown during the processing of the resource.
- ExceptionDispatchInfo (ExceptionDispatchInfo): The exception dispatch object, used for capturing the stack trace of an exception and, optionally, re-throwing it while preserving this context.
- ExceptionHandled (bool): Whether the exception was handled or not (if there was one), the default being false; if not handled, then the framework will re-throw it.
- Result (IActionResult): Possibly an action result (if one was set) which can also be set here.
There is no Controller property because the exception...