private boolean doNextWithExceptionHandler(K key, V value) throws IOException {
      try {
        return curReader.next(key, value);
      } catch (Exception e) {
        return HiveIOExceptionHandlerUtil
            .handleRecordReaderNextException(e, jc);
      }
    }
do next and handle exception inside it.
@param key
@param value
@return
@throws IOException
shims/common/src/main/java/org/apache/hadoop/hive/shims/HadoopShimsSecure.java