Chapter 7: Exceptions Handling
It's great that everything was a bed of roses while our applications were running, but sometimes incidents happen or even something unexpected.
The process of Exception handling is what allows us to handle these types of events. It's something that allows us to avoid catastrophes and turn around unexpected situations. Basically, in the midst of chaos, it gives us control. Errors can be caused by various reasons, such as the following:
- Unavailability of third-party systems: Communication failure caused by the unavailability of both internal and external producer systems
- Database unavailability: Communication failure caused by the unavailability of the database server
- Frontend server unavailability: Communication failure caused by a crash or DNS resolution of the frontend server(s)
- Handling of access authorizations: Attempts to access data or functionality by users not provided with the necessary permissions
- Errors foreseen...