1 package test.javadoc.method; 2 3 public class Test1 { 4 5 8 public void doStuff1() throws TestException1 { 9 try { 10 doStuff2(); 11 } catch (TestException2 e) { } 12 throw new Test1().new TestException1(""); 13 } 14 17 private static void doStuff2() throws TestException2 { 18 throw new TestException2(""); 19 } 20 22 class TestException1 extends Exception { 23 26 TestException1(String messg) { 27 super(messg); 28 } 29 } 30 32 public static class TestException2 extends Exception { 33 36 TestException2(String messg) { 37 super(messg); 38 } 39 } 40 } 41 42 | Popular Tags |