Global exception handling in asp.net core
Global exception handling is a way to handle unhandled exceptions in asp.net core. Add a middleware UseExceptionHandler to the pipeline that will catch exceptions, log them, reset the request path and re-execute the request. The request will not be re-executed if the response has already started. Add UseExceptionHandler code in Startup.Configure method as stated below. Continue Reading »