Previous topic | Next topic | Ada Home Page | Index

Language-defined exceptions

Several built-in exceptions are defined in Ada:

ExceptionExample
CONSTRAINT_ERRORoutside allowed range of values
NUMERIC_ERRORcannot 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.


Previous topic | Next topic | Ada Home Page | Index
c-lokan@adfa.oz.au / 26 Feb 96