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