In a perfect world, robots would run perfectly every day. Unfortunately, this is the real world, and there will be times when robots encounter situations that they are not familiar with. When that happens, a robot will terminate the process with an error message. That is called an exception. What should we do when an exception happens?
In this chapter, we will cover the basics of exception handling. We will do the following:
- Catch exceptions gracefully
- Handle errors with exception routines
- Take a look at the logs to figure out exactly which stage terminated