Exception handling

If an instruction executes abnormally, the runtime system throws exceptions that can be handled by the program. Specific exception actions can be taken based on the class of the exception. There is no way to raise exceptions explicitly; only the runtime system can throw exceptions. Runtime errors (i.e. exceptions) can be trapped by a WHENEVER exception handler or by a TRY/CATCH block. Note that some specific errors cannot be trapped.