Error Handling and ExceptionFilter Dependency Injection for ASP.NET Core APIs

added by DotNetKicks
10/26/2016 3:57:31 PM

2 Kicks, 475 Views

Exception handling in API applications is important as errors - both handled and unhandled - need to be passed to clients in some way to let them display error information. ASP.NET's default error handling doesn't provide for object error results by default, but you can use an ExceptionFilter to intercept exceptions and format them yourself.


0 comments