public class Test extends StandardTest
   {
   public static void main (String [] args)
      {
      try
         {
         dangerMethod();
         }
      catch ( StrangeException e )     // in JDK 1.7+ you can catch multiple exceptions, e.g. catch (IOException|SQLException ex)
         {
         out.println( "oops" + e.getMessage() );
         }
      } // end main

   void dangerMethod() throws StrangeException
   {
      if ( unexpected() ) throw new StrangeException ( "oh oh" );
   } // end dangerMethod
   } // end class Test