FileDocCategorySizeDatePackage
RethrowNew.javaAPI DocExample2881Mon Apr 06 18:10:24 BST 1998None

RethrowNew

public class RethrowNew extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidf()

    System.out.println(
      "originating the exception in f()");
    throw new Exception("thrown from f()");
  
public static voidmain(java.lang.String[] args)

    try {
      f();
    } catch(Exception e) {
      System.out.println(
        "Caught in main, e.printStackTrace()");
      e.printStackTrace();
      throw new NullPointerException("from main");
    }