View Javadoc
1   package com.google.checkstyle.test.chapter5naming.rule51identifiernames;
2   
3   public class InputCatchParameterName {
4       {
5           try {
6           } catch (Exception e) { // ok
7           }
8           try {
9           } catch (Exception ex) { // ok
10          }
11          try {
12          } catch (Error | Exception err) { // ok
13          }
14          try {
15          } catch (Exception exception) { // ok
16          }
17          try {
18          } catch (Exception exception1) { // ok
19          }
20          try {
21          } catch (Exception noWorries) { // ok
22          }
23          try {
24          } catch (Throwable t) { // ok
25          }
26          try {
27              throw new InterruptedException("interruptedException");
28          } catch (InterruptedException ie) { // ok
29          }
30          try {
31          } catch (Exception ok) { // ok
32              // appropriate to take no action here
33          }
34          try {
35          } catch (Exception e1) { // ok
36              try {
37              } catch (Exception e2) { // ok
38              }
39          }
40          try {
41          } catch (Throwable t1) { // ok
42              try {
43              } catch (Throwable t2) { // ok
44              }
45          }
46          try {
47          } catch (Exception iException) { // warn
48          }
49          try {
50          } catch (Exception ex_1) { // warn
51          }
52          try {
53          } catch (Exception eX) { // warn
54          }
55          try {
56          } catch (Exception eXX) { // warn
57          }
58          try {
59          } catch (Exception x_y_z) { // warn
60          }
61          try {
62          } catch (Exception Ex) { // warn
63          }
64      }
65  }