@Override public void reportException(Logger logger, Throwable t) { if (logger != null) { logger.error("Exception in HK2VerticleFactory", t); } }
public void handle(Exception e) { log.error("Unable to connect to repository"); latch.countDown(); } });
public void handle() { try { method.invoke(obj, (Object[])null); } catch (Exception e) { log.error("Failed to invoke test", e); } } });
void handleException(Exception e) { if (exceptionHandler != null) { checkContext(); exceptionHandler.handle(e); } else { log.error("Unhandled exception", e); } }
private void callFailoverCompleteHandler(FailoverCompleteHandler handler, String nodeID, JsonObject haInfo, boolean result) { if (handler != null) { try { handler.handle(nodeID, haInfo, result); } catch (Throwable t) { log.error("Failure in calling failure complete handler", t); } } }
void handleException(Exception e) { if (exceptionHandler != null) { exceptionHandler.handle(e); } else { log.error("Unhandled exception", e); } } };
/** * Fails the task. */ public void fail(Throwable t) { log.error(t); runner.complete(this); }
protected String escapeForJavaScript(String str) { try { str = StringEscapeUtils.escapeJavaScript(str); } catch (Exception e) { log.error("Failed to escape", e); str = null; } return str; }
void handleException(Exception e) { if (exceptionHandler != null) { exceptionHandler.handle(e); } else { log.error("Unhandled exception", e); } }
public void reportException(Throwable t) { if (deploymentContext != null) { deploymentContext.reportException(t); } else { t.printStackTrace(); log.error("context Unhandled exception", t); } }
public void handle(AsyncResult<Void> res) { if (res.failed()) { log.error("Failed to undeploy", res.cause()); failed.set(true); } latch.countDown(); } });
private void deleteTmpDeployments() { String tmp; while ((tmp = tempDeployments.poll()) != null) { try { vertx.fileSystem().deleteSync(tmp, true); } catch (Throwable t) { log.error("Failed to delete temp deployment", t); } } }
public void run() { vertx.setContext(null); try { runnable.run(); } catch (Throwable t) { log.error("Failed to run task", t); } finally { vertx.setContext(null); } } });
public void handle(AsyncResult<String> fr) { if (fr.succeeded()) { String deploymentName = fr.result(); startedApps.add(deploymentName); res.set(deploymentName); } else { log.error("Failed to start module", fr.cause()); } doneLatch.countDown(); } };
public void handle(AsyncResult<String> fr) { if (fr.succeeded()) { String deploymentName = fr.result(); startedApps.add(deploymentName); res.set(deploymentName); } else { log.error("Failed to deploy app", fr.cause()); } doneLatch.countDown(); } };
@Override public void handle(AsyncResult<String> ar) { if (ar.failed()) { log.error("Failed to deploy", ar.cause()); } } };
private void checkHADeployments() { try { if (attainedQuorum) { deployHADeployments(); } else { undeployHADeployments(); } } catch (Throwable t) { log.error("Failed when checking HA deployments", t); } }
public void reportException(Throwable t) { Context ctx = getContext(); if (ctx != null) { ctx.reportException(t); } else { log.error(" default vertx Unhandled exception ", t); } }
protected void sendError(Message<JsonObject> message, String error, Exception e) { logger.error(error, e); JsonObject json = new JsonObject().putString("status", "error").putString("message", error); message.reply(json); }
private void sendMessage(JsonObject msg) { EventLog.addEvent("Sending message: " + msg.encode()); try { vertx.eventBus().publish(TestBase.EVENTS_ADDRESS, msg); } catch (Exception e) { log.error("Failed to send message", e); } }