Summary
In this chapter, we understood that the platform provides artifacts that make it easier for us to process unexpected events in our applications. Furthermore, the way they relate and can be applied provides us with much greater control over what happens to these events, thus ensuring a much more understandable behavior for users (that is, better management of expectations).
With this, we realize that we can trigger our own Exceptions, we can use the Exception handlers in the most convenient way, the platform automatically bubbling up the events that do not find a handler to the Exception that was thrown, and, as a last resort, we have our safeguard: a global Exception handler.
All these features help a lot in two extremely important points of our applications: tracking errors and trends and making our applications more robust in case of errors.
All of this is an incredibly simple and fast way, without having to lose focus on business concepts, to write countless lines...