© Andrew T. Shvets 2020
A. T. ShvetsBeginning Ada Programminghttps://doi.org/10.1007/978-1-4842-5428-8_7

7. Exception Handling

Andrew T. Shvets1 
(1)
Providence, RI, USA
 

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.

The three topics that will be covered are
  1. 1)

    How to catch existing exceptions, which you will trigger on purpose.

     
  2. 2)

    How to throw exceptions so that specific actions can be triggered.

     
  3. 3)

    How to make ...

Get Beginning Ada Programming: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.