EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1335 background imageLoading...
Page #1335 background image
Appendix C: Macros — Error Handling
1293
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
ER_throw
Declaration: ER_throw
(int
errorCode
)
Category(ies):
Error Handling
Description:
This macro throws an exception to be caught in the ONERR or FINALLY
section of an enclosing TRY block. See chapter
9. Error Handling
for a
complete discussion of throwing and catching exceptions.
Note:
This is a macro version of
ER_throwVar
, but
errorCode
must be an integer
constant.
ER_throw
compiles to shorter code than
ER_throwVar
— about two bytes
shorter per call.
Inputs:
errorCode
Error number signifying cause of exception.
Outputs:
None. This macro never returns — execution resumes at the ONERR or
FINALLY section of the enclosing TRY block.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: ER_throwFrame, ER_throwVar, FINALLY, ONERR, TRY
Example:
TRY
HANDLE h;
h = HeapAlloc(A_BIG_BUFFER);
if (h == H_NULL)
ER_throw(ER_MEMORY);
.
.
.
HeapFree(h)
ONERR
/* Do something about low memory condition */
.
.
.
ENDTRY

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals