BrandGhost
Handle ANY Exception On Routes - ASP NET Core Middleware

Handle ANY Exception On Routes - ASP NET Core Middleware

How is it that ASP NET Core servers don't crash when there's an unhandled exception on a route thanks to a web request? Surely... they don't have a big try/catch block behind the scenes?! Surprise -- they do. Fortunately for you, we can leverage middleware to hook into that and handle exceptions that bubble up from routes in our own way! In this video, I'll walk through my own use case for wanting to have error-handling middleware and how you can incorporate such a thing in your own ASP NET Core applications.
An error has occurred. This application may no longer respond until reloaded. Reload