本文整理了Java中org.vertx.java.core.logging.Logger.error()
方法的一些代码示例,展示了Logger.error()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.error()
方法的具体详情如下:
包路径:org.vertx.java.core.logging.Logger
类名称:Logger
方法名:error
暂无
代码示例来源:origin: com.englishtown/vertx-mod-hk2
@Override
public void reportException(Logger logger, Throwable t) {
if (logger != null) {
logger.error("Exception in HK2VerticleFactory", t);
}
}
代码示例来源:origin: org.vert-x/vertx-platform
public void handle(Exception e) {
log.error("Unable to connect to repository");
latch.countDown();
}
});
代码示例来源:origin: io.vertx/vertx-testframework
public void handle() {
try {
method.invoke(obj, (Object[])null);
} catch (Exception e) {
log.error("Failed to invoke test", e);
}
}
});
代码示例来源:origin: org.vert-x/vertx-core
void handleException(Exception e) {
if (exceptionHandler != null) {
checkContext();
exceptionHandler.handle(e);
} else {
log.error("Unhandled exception", e);
}
}
代码示例来源:origin: io.vertx/vertx-platform
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);
}
}
}
代码示例来源:origin: org.vert-x/vertx-core
void handleException(Exception e) {
if (exceptionHandler != null) {
exceptionHandler.handle(e);
} else {
log.error("Unhandled exception", e);
}
}
};
代码示例来源:origin: net.kuujo/vertigo-utils
/**
* Fails the task.
*/
public void fail(Throwable t) {
log.error(t);
runner.complete(this);
}
代码示例来源:origin: org.vert-x/vertx-core
protected String escapeForJavaScript(String str) {
try {
str = StringEscapeUtils.escapeJavaScript(str);
} catch (Exception e) {
log.error("Failed to escape", e);
str = null;
}
return str;
}
代码示例来源:origin: org.vert-x/vertx-core
void handleException(Exception e) {
if (exceptionHandler != null) {
exceptionHandler.handle(e);
} else {
log.error("Unhandled exception", e);
}
}
代码示例来源:origin: org.vert-x/vertx-core
public void reportException(Throwable t) {
if (deploymentContext != null) {
deploymentContext.reportException(t);
} else {
t.printStackTrace();
log.error("context Unhandled exception", t);
}
}
代码示例来源:origin: io.vertx/vertx-testframework
public void handle(AsyncResult<Void> res) {
if (res.failed()) {
log.error("Failed to undeploy", res.cause());
failed.set(true);
}
latch.countDown();
}
});
代码示例来源:origin: io.vertx/vertx-platform
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);
}
}
}
代码示例来源:origin: io.vertx/vertx-platform
public void run() {
vertx.setContext(null);
try {
runnable.run();
} catch (Throwable t) {
log.error("Failed to run task", t);
} finally {
vertx.setContext(null);
}
}
});
代码示例来源:origin: io.vertx/vertx-testframework
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();
}
};
代码示例来源:origin: io.vertx/vertx-testframework
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();
}
};
代码示例来源:origin: io.vertx/vertx-platform
@Override
public void handle(AsyncResult<String> ar) {
if (ar.failed()) {
log.error("Failed to deploy", ar.cause());
}
}
};
代码示例来源:origin: io.vertx/vertx-platform
private void checkHADeployments() {
try {
if (attainedQuorum) {
deployHADeployments();
} else {
undeployHADeployments();
}
} catch (Throwable t) {
log.error("Failed when checking HA deployments", t);
}
}
代码示例来源:origin: org.vert-x/vertx-core
public void reportException(Throwable t) {
Context ctx = getContext();
if (ctx != null) {
ctx.reportException(t);
} else {
log.error(" default vertx Unhandled exception ", t);
}
}
代码示例来源:origin: io.vertx/vertx-platform
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);
}
代码示例来源:origin: io.vertx/vertx-testframework
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);
}
}
内容来源于网络,如有侵权,请联系作者删除!