On this page
Ada.IO_Exceptions
Exception identities for the supplied I/O subset.
Read the family guide for representation, selection and resource rules. The complete declaration page retains exact signatures/contracts; the source specification is the implementation baseline.
Availability and ownership
Declares the I/O exceptions Ada.Text_IO renames. Each I/O operation's Exceptional_Cases says which of them it may propagate.
A client proof uses these contracts without proving the body again (see library assurance). Global => null excludes package-global effects, not changes made through an in out argument.
Import and instantiate
with Ada.IO_Exceptions;import Ada.IO_Exceptions;
A Vibe module imports this unit's names with from Ada.IO_Exceptions import Name; see library use across syntaxes. In Varc, keep each name's declared spelling and write & on arguments the call changes.
Contract and lifecycle reading
A Pre condition is the caller's obligation; a Post is what a normal return guarantees. What a postcondition does not state, a client cannot assume. Ghost functions are for contracts and ghost code. The family guide describes copying, lifetime, order and cost.
API 001
Status_Error (declaration) — Declared exception identity (or renaming of that identity); catch/propagate only under the language and calling operation's exceptional rules.
API 002
Mode_Error (declaration) — Declared exception identity (or renaming of that identity); catch/propagate only under the language and calling operation's exceptional rules.
API 003
Name_Error (declaration) — Declared exception identity (or renaming of that identity); catch/propagate only under the language and calling operation's exceptional rules.
API 004
Use_Error (declaration) — Declared exception identity (or renaming of that identity); catch/propagate only under the language and calling operation's exceptional rules.
API 005
Device_Error (declaration) — Declared exception identity (or renaming of that identity); catch/propagate only under the language and calling operation's exceptional rules.
API 006
End_Error (declaration) — Declared exception identity (or renaming of that identity); catch/propagate only under the language and calling operation's exceptional rules.
API 007
Data_Error (declaration) — Declared exception identity (or renaming of that identity); catch/propagate only under the language and calling operation's exceptional rules.
API 008
Layout_Error (declaration) — Declared exception identity (or renaming of that identity); catch/propagate only under the language and calling operation's exceptional rules.