本文整理了Java中java.io.EOFException.getLocalizedMessage()
方法的一些代码示例,展示了EOFException.getLocalizedMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EOFException.getLocalizedMessage()
方法的具体详情如下:
包路径:java.io.EOFException
类名称: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
内容来源于网络,如有侵权,请联系作者删除!