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


      ON ERROR PROCerror(ERR, REPORT$) : END
 
      ERROR 100, "User-generated exception"
      END
 
      DEF PROCerror(er%, rpt$)
      PRINT "Exception occurred"
      PRINT "Error number was " ; er%
      PRINT "Error string was " rpt$
      ENDPROC