LOG.info("server {} not up: {}", hp, e.toString()); } catch (IOException e) {
Emsg(e.toString(), out); } catch (ConnectException e) { Emsg(e.toString(), out); } catch (NoRouteToHostException e) { Emsg(e.toString(), out);
logger.error(e.toString());
String ex = e.toString();
/** * 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()); } }
} catch (ConnectException e) { throw new MobyException("Cannot read from url '" + url + "'. " + e.toString()); } catch (IOException e) { throw new MobyException("Cannot write to '"
} catch (ConnectException e) { throw new MobyException("Cannot read from url '" + url + "'. " + e.toString()); } catch (IOException e) { throw new MobyException("Cannot write to '"
} catch (ConnectException e) { throw new MobyException("Cannot read from url '" + url + "'. " + e.toString()); } catch (IOException e) { throw new MobyException("Cannot write to '"
throw new PacketTransportException("Could not connect to "+host+":"+port+" : "+e.toString());
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()) {
System.err.println("Could not connect to IP camera at " + hostIP + ": " + e.toString()); e.printStackTrace(); return null;
Thread.sleep(100); } catch (ConnectException e) { LOG.info("no existing webapp instance found: {}", e.toString()); } catch (Exception e) {
Thread.sleep(100); } catch (ConnectException e) { LOG.info("no existing webapp instance found: {}", e.toString()); } catch (Exception e) {
System.err.println("Could not connect to IP camera at " + hostIP + ": " + e.toString()); e.printStackTrace();
Thread.sleep(100); } catch (ConnectException e) { LOG.info("no existing webapp instance found: {}", e.toString()); } catch (Exception e) {
log.log(Level.FINEST, e.toString(), e); else log.fine(path + ": " + e);
uri, e.toString()), e); } catch (RuntimeException e) {