java.io.EOFException.getLocalizedMessage()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(186)

本文整理了Java中java.io.EOFException.getLocalizedMessage()方法的一些代码示例,展示了EOFException.getLocalizedMessage()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EOFException.getLocalizedMessage()方法的具体详情如下:
包路径:java.io.EOFException
类名称:EOFException
方法名:getLocalizedMessage

EOFException.getLocalizedMessage介绍

暂无

代码示例

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

} catch(EOFException e) {  // namenode might have just restarted
 LOG.info("Problem connecting to server: " + nnAddr + " :"
   + e.getLocalizedMessage());
 sleepAndLogInterrupts(1000, "connecting to server");
} catch(SocketTimeoutException e) {  // namenode is busy

代码示例来源:origin: tony19/logback-android

public List<SaxEvent> recordEvents(InputSource inputSource)
  throws JoranException {
 Driver parser = buildPullParser();
 try {
  parser.setContentHandler((ContentHandler) this);
  parser.setErrorHandler(this);
  parser.parse(inputSource);
  return saxEventList;
 } catch (EOFException eof) {
  handleError(eof.getLocalizedMessage(),
    new SAXParseException(eof.getLocalizedMessage(), locator, eof));
 } catch (IOException ie) {
  handleError("I/O error occurred while parsing xml file", ie);
 } catch(SAXException se) {
  // Exception added into StatusManager via Sax error handling. No need to add it again
  throw new JoranException("Problem parsing XML document. See previously reported errors.", se);
 } catch (Exception ex) {
  handleError("Unexpected exception while parsing XML document.", ex);
 }
 throw new IllegalStateException("This point can never be reached");
}

代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs

} catch(EOFException e) {  // namenode might have just restarted
 LOG.info("Problem connecting to server: " + nnAddr + " :"
   + e.getLocalizedMessage());
 sleepAndLogInterrupts(1000, "connecting to server");
} catch(SocketTimeoutException e) {  // namenode is busy

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

} catch(EOFException e) {  // namenode might have just restarted
 LOG.info("Problem connecting to server: " + nnAddr + " :"
   + e.getLocalizedMessage());
 sleepAndLogInterrupts(1000, "connecting to server");
} catch(SocketTimeoutException e) {  // namenode is busy

相关文章