Error handling by a program itself
The function SETJUMP% can store a code position to the global array ERRORHANDLER which is called if a runtime error occurs. If one wishes to use the standard error handling, ERRORHANDER must be assigned 0.
This mechanism works similar to the try-catch-mechanism in C++.
|