code: public void dumpRow(PrintStream out) {
          for (int i = 0; i < columnNames.size(); i++) {
              out.print("Column ");
              out.print(i);
              out.print(" ");
              out.print(columnNames.get(columnIndex));
              out.print(" : ");
              try {
                  out.println(line[i]);
              } catch (ArrayIndexOutOfBoundsException aioobe) {
                  out.println("Unable to get cell " + i + " of this line");
              }
          }
      }
docs: Dumps to a PrintStream the information relative to the row that caused the problem
  
  @param out The PrintStream to output to