InternetException

ASP.NET Core global exception handling

· 14 words · ~1 min read · in .NET, interview

#ASP.NET

To add global exception handling in ASP.NET Core just use configuration method:

app.UseExceptionHandler

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/error-handling?view=aspnetcore-6.0#exception-handler-lambda