next up previous contents index
Next: Using assembler Up: Exceptions Previous: Exception handling nesting

Exception classes

 

The sysutils unit contains a great deal of exception handling. It defines the following exception types:

The sysutils unit also installs an exception handler. If an exception is unhandled by any exception handling block, this handler is called by the Run-Time library. Basically, it prints the exception address, and it prints the message of the Exception object, and exits with a exit code of 217. If the exception object is not a descendent object of the Exception object, then the class name is printed instead of the exception message.

It is recommended to use the Exception object or a descendant class for all raise statemnts, since then you can use the message field of the exception object.


next up previous contents index
Next: Using assembler Up: Exceptions Previous: Exception handling nesting

Michael Van Canneyt
Fri Sep 25 09:15:40 MEST 1998