1 package test.javadoc.method; 2 3 public class Test2 { 4 5 7 class TestException1 extends Exception { 8 11 TestException1(String messg) { 12 super(messg); 13 } 14 } 15 17 public static class TestException2 extends Exception { 18 21 TestException2(String messg) { 22 super(messg); 23 } 24 } 25 28 public void doStuff1() throws TestException1 { 29 try { 30 doStuff2(); 31 } catch (TestException2 e) { } 32 throw new Test2().new TestException1(""); 33 } 34 37 private static void doStuff2() throws TestException2 { 38 throw new TestException2(""); 39 } 40 } 41 | Popular Tags |