View Javadoc
1   import java.io.BufferedReader;
2   import java.io.IOException;
3
4   public class UseInitCause {
5
6       public String firstLine(BufferedReader r) {
7           try {
8               return r.readLine();
9           } catch (IOException e) {
10              throw (RuntimeException) new RuntimeException("IO Error").initCause(e);
11          }
12      }
13
14  }