Appendix A: System Routines — Error Handling
449
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
clear_error_context
Declaration:
void
clear_error_context
(void)
Category(ies):
Error Handling
Description:
Resets the internal variables associated with error handling. This
subroutine is called when an error throw is caught and not passed.
Inputs:
None
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
None
Example:
/* This subroutine is called when an error throw is caught and not passed.
For example, when the calculator user presses the ON key, an ER_BREAK is thrown.
The following code segment passes all other codes but clears the ER_BREAK and
continues processing.
*/
TRY
/* code that may cause an error throw */
.
.
.
ONERR
if (errCode != ER_BREAK)
PASS;
clear_error_context ( );
ENDTRY