Handling Web API Exceptions with ProblemDetails middleware

added by DotNetKicks
5/19/2020 10:29:21 AM

407 Views

In this short post I describe a handy error-handling middleware, created by Kristian Hellang, that is used to return ProblemDetails results when an exception occurs. ASP.NET Core 2.1 introduced the [ApiController] attribute which applies a number of common API-specific conventions to controllers.


0 comments