ASP.NET Core controller level exception handling

To handle exceptions on Controller/Action level Exception Filters are used.

public class ExceptionController : Controller

Exception Filters are implemented using IExceptionFilter with OnExcetion method override to handle exceptions.

Exception Filters can be applied to Controller and Action level.

Further read:

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
18 + 23 =