Rethrowing Exceptions : throw « Statements « SCJP






import java.io.FileNotFoundException;

public class MainClass {
  public static void main(String[] argv) throws Exception {
    try {
      throw new FileNotFoundException("");
    } catch (FileNotFoundException ex) {
      System.out.println("book list not found!");
      throw ex;
    }

  }
}








5.12.throw
5.12.1.Throwing Exceptions
5.12.2.Rethrowing Exceptions