Several built-in exceptions are defined in Ada:
| Exception | Example |
|---|---|
| CONSTRAINT_ERROR | outside allowed range of values |
| NUMERIC_ERROR | cannot return correct numeric result |
| underflow, overflow, divide by zero | |
| PROGRAM_ERROR | (unusual) |
| eg end of function reached with no return | |
| STORAGE_ERROR | all memory used up |
| infinite recursion | |
| TASKING_ERROR | parallel programs |
| DATA_ERROR | invalid data type |
| (may be included in CONSTRAINT_ERROR) |
Several more exceptions are defined in TEXT_IO, and are related particularly to handling exceptions in input/output.