1   package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod;
2   /** Test 3. */
3   public class InputJavadocMethod_03 {
4   
5       /** Do 1.
6        * @throws TestException1 when error occurs.
7        * @throws TestException2 when error occurs.
8        */
9       public void doStuff1() throws TestException1, TestException2 {
10          try {
11              doStuff2();
12          } catch (final TestException2 e) { }
13          throw new InputJavadocMethod_03().new TestException1("");
14      }
15      /** Do 2.
16       * @throws TestException2 when error occurs.
17       */
18      private static void doStuff2() throws TestException2 {
19          throw new TestException2("");
20      }
21      /** Exception 1.
22       */
23      class TestException1 extends Exception {
24          /** Exception 1.
25           * @param messg message
26           */
27          TestException1(String messg) {
28              super(messg);
29          }
30      }
31      /** Exception 2.
32       */
33      public static class TestException2 extends Exception {
34          /** Exception 2.
35           * @param messg message
36           */
37          TestException2(String messg) {
38              super(messg);
39          }
40      }
41  }