home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
modu1096.zip
/
ISOsym
/
m2exception.def
< prev
next >
Wrap
Text File
|
1996-09-23
|
950b
|
23 lines
DEFINITION MODULE M2EXCEPTION;
(* Provides facilities for identifying language exceptions *)
TYPE M2Exceptions =
(indexException, rangeException, caseSelectException,
invalidLocation, functionException, wholeValueException,
wholeDivException, realValueException, realDivException,
complexValueException, complexDivException, protException,
sysException, coException, exException);
PROCEDURE M2Exception() : M2Exceptions;
(* If the current coroutine is in the exceptional execution state *
* because of the raising of a language exception, returns the *
* corresponding enumeration value, otherwise raises an exception *)
PROCEDURE IsM2Exception() : BOOLEAN;
(* If the current coroutine is in the exceptional execution state *
* because of the raising of a language exception, returns TRUE *
* and otherwise returns FALSE *)
END M2EXCEPTION.