Purpose The throw statement is used to raise/throw an exception within a try ... catch statement. Whenever an exception is thrown it is trapped in the catch clause of the try ... catch statement. The most recent exception raised can be found within the exception object.
Format throw({exception desc});

{exception desc} a text description of the exception
Example #1 try {
   if (today() = #29-May-2002#) {
      throw("No work today!");
   xout("Here I am at work...");
} catch {

Prints the string No work today! to the output stream if the date is 29th May 2002; otherwise, prints the text Here I am at work... to the output stream.