public static RecordReader handleRecordReaderCreationException(Exception e,
      JobConf job) throws IOException {
    LOG.error("RecordReader#init() threw an exception: ", e);
    HiveIOExceptionHandlerChain ioExpectionHandlerChain = get(job);
    if (ioExpectionHandlerChain != null) {
      return ioExpectionHandlerChain.handleRecordReaderCreationException(e);
    }
    throw new IOException(e);
  }
Handle exception thrown when creating record reader. In case that there is
an exception raised when construction the record reader and one handler can
handle this exception, it should return an record reader, which is either a
dummy empty record reader or a specific record reader that do some magic.

@param e
@param job
@return RecordReader
@throws IOException
shims/common/src/main/java/org/apache/hadoop/hive/io/HiveIOExceptionHandlerUtil.java