Previous: Function Descriptions, Up: Of Errors [Index]
When error occurs, the aime interpreters terminate the execution of the defined execution scopes, starting with the most local scope (the instruction) and endind with to the most general, or global scope (the program).
The error propagation down the scopes stack does not need to reach the global scope, and provided the right mechanics are in place, it may be stopped before the program execution is terminated.
A C interface trivial method of trapping errors is ignoring the error returns of functions executed via function pointers in application defined functions.
See Step By Step Higher Order Function Execution.
Care must be taken not to ignore the unrecoverable errors, though.
The trap library objects export a number of interfaces concerned with error trapping. They execute functions and trap the errors that are not indicated as being serious enough to prompt program execution termination.
See Trap Library.
Most of the applicable libaime interfaces return one of error class indications when in error.
See Error Classes.
The C interfaces that make subject to error trapping and thus have their returns examined for error classification include function implementing:
See Functions.
See x1f4_long_program.
See x1f4_note_program.
See x1f4_long_shuffle.
See x1f4_note_shuffle.
Previous: Function Descriptions, Up: Of Errors [Index]