What You Will Get Out of This Chapter
In this chapter, the concept of exceptions is introduced. Exceptions are software interruptions for anomalous things that might occur when your application is running. For example, if you are working on controller software and it is monitoring sensors on a drone, it would be wise to execute some code to land the vehicle safely if a motor is overheating.
- 1)
How to catch existing exceptions, which you will trigger on purpose.
- 2)
How to throw exceptions so that specific actions can be triggered.
- 3)
How to make ...