Control Structures
These are examples of control structures. You may also be interested in:

 Conditional structures
 Exceptions
 Flow-control structures
 Loops

This task is to give an example of an exception handling routine
and to "throw" a new exception.



Related task

   Exceptions Through Nested Calls


 
/* Define a new exception, called "my_condition". */
on condition (my_condition) snap begin;
   put skip list ('My condition raised.');
end;
 
/* Raise that exception */
signal condition (my_condition);
 
/* Raising that exception causes the message "My condition raised" */
/* to be printed, and execution then resumes at the statement      */
/* following the SIGNAL statement.                                 */
 