本文整理了Java中java.net.ConnectException.toString()
方法的一些代码示例,展示了ConnectException.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConnectException.toString()
方法的具体详情如下:
包路径:java.net.ConnectException
类名称:ConnectException
方法名:toString
暂无
代码示例来源:origin: apache/zookeeper
LOG.info("server {} not up: {}", hp, e.toString());
} catch (IOException e) {
代码示例来源:origin: i2p/i2p.i2p
Emsg(e.toString(), out);
} catch (ConnectException e) {
Emsg(e.toString(), out);
} catch (NoRouteToHostException e) {
Emsg(e.toString(), out);
代码示例来源:origin: org.openhab.binding/org.openhab.binding.ebus
logger.error(e.toString());
代码示例来源:origin: eu.mihosoft.vrl/vrl
String ex = e.toString();
代码示例来源:origin: codeabovelab/haven-platform
/**
* Do analysing of exception for connection errors, which is mean offline status
*
* @param e
*/
private void checkOnline(Exception e) {
ConnectException conn = Throwables.find(e, ConnectException.class);
if (conn != null) {
toggleOnline(conn.toString());
}
}
代码示例来源:origin: net.sf.taverna.t2.activities/biomoby-activity-ui
} catch (ConnectException e) {
throw new MobyException("Cannot read from url '"
+ url + "'. " + e.toString());
} catch (IOException e) {
throw new MobyException("Cannot write to '"
代码示例来源:origin: org.biomoby/taverna-biomoby
} catch (ConnectException e) {
throw new MobyException("Cannot read from url '"
+ url + "'. " + e.toString());
} catch (IOException e) {
throw new MobyException("Cannot write to '"
代码示例来源:origin: net.sf.taverna.t2.ui-activities/biomoby-activity-ui
} catch (ConnectException e) {
throw new MobyException("Cannot read from url '"
+ url + "'. " + e.toString());
} catch (IOException e) {
throw new MobyException("Cannot write to '"
代码示例来源:origin: timewalker74/ffmq
throw new PacketTransportException("Could not connect to "+host+":"+port+" : "+e.toString());
代码示例来源:origin: org.apache.james/apache-standard-mailets
break;
} catch (ConnectException ce) {
log("Trial #" + ping + "/" + getMaxPings() + " - exception caught: " + ce.toString() + " while creating socket connected to " + address + " on port " + getPort());
ping++;
if (ping <= getMaxPings()) {
代码示例来源:origin: openpnp/openpnp
System.err.println("Could not connect to IP camera at " + hostIP + ": " + e.toString());
e.printStackTrace();
return null;
代码示例来源:origin: ch.cern.hadoop/hadoop-yarn-common
Thread.sleep(100);
} catch (ConnectException e) {
LOG.info("no existing webapp instance found: {}", e.toString());
} catch (Exception e) {
代码示例来源:origin: com.github.jiayuhan-it/hadoop-yarn-common
Thread.sleep(100);
} catch (ConnectException e) {
LOG.info("no existing webapp instance found: {}", e.toString());
} catch (Exception e) {
代码示例来源:origin: openpnp/openpnp
System.err.println("Could not connect to IP camera at " + hostIP + ": " + e.toString());
e.printStackTrace();
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common
Thread.sleep(100);
} catch (ConnectException e) {
LOG.info("no existing webapp instance found: {}", e.toString());
} catch (Exception e) {
代码示例来源:origin: com.caucho/resin
log.log(Level.FINEST, e.toString(), e);
else
log.fine(path + ": " + e);
代码示例来源:origin: baratine/baratine
uri, e.toString()),
e);
} catch (RuntimeException e) {
内容来源于网络,如有侵权,请联系作者删除!