There are five actions that can be executed if an exception is
raised:
- STOP
- The program is immediately terminated. A message is displayed
to the standard error with the location of the related statement,
the error number, and the details of the exception.
- CONTINUE
- The program continues normally (the exception is ignored).
- CALL name
- The function name is called by the runtime system. The
function can be defined in any module, and must have zero parameters
and zero return values. The STATUS variable
will be set to the corresponding error number.
- GOTO name
- The program execution continues at the label identified by name .
- RAISE
- This statement instructs the DVM that an exception raised will
not be handled by the local function, but by the calling function.
If an exception is raised, the current function will return and
the exception handling is left to the caller function. Note that
WHENEVER[ANY] ERROR RAISE is not supported in
a REPORT routine.