Error Handling Prework
Pre-work for Error Handling
When an application is running, there are all kinds of unexpected things that can and will happen. Maybe the API you are using goes down, or maybe the user inputs a string for a field that should be a number.
It’s our job as developers to identify, manage, and respond to these situations. We want to handle these cases gracefully and make sure the application doesn’t crash and we give useful messages to the user about what went wrong.
To prepare for the lesson on Error Handling, read Writing Helpful Error Messages from the Google Technical Writing Course to help you start thinking about what goes into good and bad error handling.
Then read the following Error Handling Rules: