private void logInternal(final String perms) { if ((perms != null) && log.isDebugEnabled()) { log.debug("You are running on Windows and POSIX style file permissions are not supported"); } }
@Override public void reportException(Logger logger, Throwable t) { if (logger != null) { logger.error("Exception in HK2VerticleFactory", t); } }
public void handle(HttpServerRequest req) { if (log.isTraceEnabled()) log.trace("Request: " + req.uri + " does not match, returning 404"); req.response.statusCode = 404; req.response.end(); } });
@Override public void init(JerseyConfigurator configurator) { baseUri = configurator.getBaseUri(); maxBodySize = configurator.getMaxBodySize(); applicationHandlerDelegate = configurator.getApplicationHandler(); logger.debug("DefaultJerseyHandler - initialized"); }
public void handle(AsyncResult<Void> event) { if (event.exception != null) { log.error("Failed to remove entry", event.exception); } } };
protected void sendInvalidJSON(HttpServerResponse response) { if (log.isTraceEnabled()) log.trace("Broken JSON"); response.statusCode = 500; response.end("Broken JSON encoding."); }
public void reportException(Logger logger, Throwable t) { logger.error("Exception in Java verticle", t); }
@Override public void handle(HttpServerRequest req) { if (log.isTraceEnabled()) { log.trace("Got request in sockjs server: " + req.uri); } rm.handle(req); } });
public void handle(Exception e) { log.error("Unable to connect to repository"); latch.countDown(); } });
public void sendFrame(final String body) { if (log.isTraceEnabled()) log.trace("WS, sending frame"); if (!closed) { ws.writeTextFrame(body); } }
public void handle() { try { method.invoke(obj, (Object[])null); } catch (Exception e) { log.error("Failed to invoke test", 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); } } }
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); } }
void handleException(Exception e) { if (exceptionHandler != null) { checkContext(); exceptionHandler.handle(e); } else { log.error("Unhandled exception", e); } }
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); }
@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); } }
private void checkHADeployments() { try { if (attainedQuorum) { deployHADeployments(); } else { undeployHADeployments(); } } catch (Throwable t) { log.error("Failed when checking HA deployments", t); } }