Previous topic | Next topic | Ada Home Page | Index

Exceptions in Input/Output

TEXT_IO defines several exceptions:

ExceptionExample
DATA_ERRORinvalid data type, data has wrong form
STATUS_ERRORtry to open an already open file
MODE_ERRORtry to read from an output file
NAME_ERRORno such file
USE_ERRORtry to open printer for reading
END_ERROREOF encountered while reading
LAYOUT_ERRORSET_COL beyond LINELENGTH limit
DEVICE_ERRORhardware failure

Several examples show how some of these exceptions may be handled during input/output:


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