error handling Global Error Handling in ASP.NET Core Web API The features of exception handling help us deal with the unexpected mistakes that can occur in our code. We can remove the try-catch block in our code.