Chapter 9. Error Handling
Of course, we all like to think that we’re really good developers. In a lot of cases, that’s probably true. Still, like it or not, there are going to be times when the code that you write will not perform the way you expected. In those instances, it’s important to make sure that you’ve provided a way for your application to gracefully handle those errors.
If you were to attempt to perform a function within your application and that attempt was met with failure, you’d probably be able to easily decipher from the standard error message exactly what had caused the failure to occur.
These standard error messages, while not particularly beautiful from a user interface (UI) standpoint, do provide a large amount of critical debugging ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access