View Javadoc
1   /*
2   CatchParameterName
3   format = ^[a-z][a-zA-Z0-9]+$
4   
5   
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checks.naming.catchparametername;
9   
10  public class InputCatchParameterName2 {
11      {
12          try {
13          } catch (Exception e) { // violation
14          }
15          try {
16          } catch (Exception ex) {
17          }
18          try {
19          } catch (Error | Exception err) {
20          }
21          try {
22          } catch (Exception exception) {
23          }
24          try {
25          } catch (Exception exception1) {
26          }
27          try {
28          } catch (Exception noWorries) {
29          }
30          try {
31          } catch (Throwable t) { // violation
32          }
33          try {
34              throw new InterruptedException("interruptedException");
35          } catch (InterruptedException ie) {
36          }
37          try {
38          } catch (Exception iException) {
39          }
40          try {
41          } catch (Exception ok) {
42              // appropriate to take no action here
43          }
44          try {
45          } catch (Exception e1) {
46              try {
47              } catch (Exception e2) {
48              }
49          }
50          try {
51          } catch (Throwable t1) {
52              try {
53              } catch (Throwable t2) {
54              }
55          }
56      }
57  }