// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class ExEx {
   public static void f() throws Exception { // because it rethrows
      try {
         throw new Exception("Arne exception"); // throw new exception
      } catch (Exception e) { // catch exception
         System.out.println("Oops: " + e); // print exception
         throw e; // rethrow same exception
      }
   }
   public static void main(String[] args) throws Exception {
      f();
   }
}
