Exception handling
One of the most important quality indicators of an application is how it responds to errors and exceptional cases. A good application should handle errors, return a proper response to the client, and gracefully inform the user about the problem.
In a typical web application, we should care about exceptions in every client request, which makes it a repetitive and tedious task for developers.
ABP Framework completely automates error handling in every aspect of your application. Most of the time, you don't need to write any try-catch
statement in your application code, as it does the following:
- Handles all exceptions, logs them, and returns a standard-formatted error response to the client for an API request or shows a standard error page for a server-rendered page
- Hides internal infrastructure errors while allowing you to return user-friendly, localized error messages when you need them
- Understands standard exceptions such as validation and...