You are developing an ASP.NET MVC application. The application uses a set of custom exceptions to log
errors that occur during the execution of an action.
You need to develop a class that implements logging.
Which interface should you implement?
A.
IExceptionFilter
B.
IActionFilter
C.
IClientValidatable
D.
IResultFilter
Explanation:
Exception filters are used to apply global policies to unhandled exceptions in the MVC app.
Exception Filters implement either the IExceptionFilter or IAsyncExceptionFilter interface.
Exception filters handle unhandled exceptions, including those that occur during controller creation and model
binding. They are only called when an exception occurs in the pipeline.