Handling exception in asp.net core?
You can use to handle exceptions UseExceptionHandler(), put this code in your Startup.cs. UseExceptionHandler can be used to handle exceptions globally. You can get all the details of exception object like Stack Trace, Inner exception and others. And then you can show them on screen. Here Here You can read more about this diagnostic middleware … Read more