A procedure with an exception handler looks like this:
PROC fred(params...) HANDLE /* Main, real code */ EXCEPT /* Error handling code */ ENDPROC
This is very similar to a normal procedure, apart from the
HANDLE keyword means the procedure is going to have an exception handler, and the
EXCEPT keyword marks the end of the normal code and the start of the exception handling code.
The procedure works just as normal, executing the code in the part before the
EXCEPT, but when an error happens you can pass control to the exception handler (i.e., the code after the
EXCEPT is executed).
Go to the Next or Previous section, the Detailed Contents, or the Amiga E Encyclopedia.