本文整理了Java中org.tinygroup.logger.Logger.errorMessage()
方法的一些代码示例,展示了Logger.errorMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.errorMessage()
方法的具体详情如下:
包路径:org.tinygroup.logger.Logger
类名称:Logger
方法名:errorMessage
暂无
代码示例来源:origin: org.tinygroup/org.tinygroup.command
public void print(String str) {
try {
if (str != null) {
out.write(str.getBytes());
}
} catch (IOException e) {
LOGGER.errorMessage("内容({0})输入时出现异常:。", e, str);
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.command
private CommandGoalExecutor newInstance(String className2) {
try {
return (CommandGoalExecutor) Class.forName(className2)
.newInstance();
} catch (Exception e) {
LOGGER.errorMessage("加载类<{0}>时出现异常!", e, className2);
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.tinydb
protected void operatorErrorLog(String sql, DataAccessException exception,
Object... parameters) {
logger.errorMessage("DbOperatorId:[{0}],执行的错误sql:[{1}],参数:[{2}]",
exception, uuid.toString(), sql, paramsToString(parameters));
}
代码示例来源:origin: org.tinygroup/org.tinygroup.pageflowbasiccomponent
public void execute(Context context) {
try {
WebContext webContext = (WebContext) context;
webContext.getResponse().sendRedirect(path);
} catch (Exception e) {
logger.errorMessage("Redirect到地址[{}]出错,错误原因:{}", e, path,
e.getMessage());
}
}
代码示例来源:origin: org.tinygroup/weblayer
public void execute(Context context) {
try {
WebContext webContext = (WebContext) context;
webContext.getResponse().sendRedirect(path);
} catch (Exception e) {
logger.errorMessage("Redirect到地址[{}]出错,错误原因:{}", e, path,
e.getMessage());
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.nettyremote
public void operationComplete(ChannelFuture future) throws Exception {
if (!future.isSuccess()) {
LOGGER.errorMessage("连接服务端{0}:{1}发生失败", future.cause(), remoteHost, remotePort);
} else {
connected();
}
}
代码示例来源:origin: org.tinygroup/dao
public Collection<T> delete(Collection<T> objects) {
try {
basicDaoService.delete(objects);
} catch (Exception e) {
logger.errorMessage("删除对象集合失败",e);
}
return null;
}
代码示例来源:origin: org.tinygroup/dao
public T[] save(T[] objects) {
try {
return (T[]) basicDaoService.save(objects);
} catch (Exception e) {
logger.errorMessage("保存对象数组失败",e);
}
return null;
}
代码示例来源:origin: org.tinygroup/dao
public T[] delete(T[] objects) {
try {
return (T[]) basicDaoService.delete(objects);
} catch (Exception e) {
logger.errorMessage("删除对象数组失败",e);
}
return null;
}
代码示例来源:origin: org.tinygroup/org.tinygroup.cepcoremutiremoteimpl
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
throws Exception {
logger.errorMessage("服务端收到异常",cause);
ctx.fireExceptionCaught(cause);
}
代码示例来源:origin: org.tinygroup/org.tinygroup.cepcoremutiremoteimpl
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
throws Exception {
logger.errorMessage("服务端收到异常", cause);
ctx.fireExceptionCaught(cause);
}
代码示例来源:origin: org.tinygroup/org.tinygroup.cepcoremutiremoteimpl
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
throws Exception {
logger.errorMessage("客户端收到异常", cause);
ctx.fireExceptionCaught(cause);
}
}
代码示例来源:origin: org.tinygroup/dao
public Collection<T> update(Collection<T> objects) {
try {
return (Collection<T>) basicDaoService.update(objects);
} catch (Exception e) {
logger.errorMessage("更新对象集合失败",e);
}
return null;
}
代码示例来源:origin: org.tinygroup/org.tinygroup.cepcoremutiremoteimpl
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
throws Exception {
logger.errorMessage("客户端收到异常", cause);
ctx.fireExceptionCaught(cause);
}
}
代码示例来源:origin: org.tinygroup/netplugin
private void stopServers(){
for(String name:serverMaps.keySet()){
try {
serverMaps.get(name).stop();
} catch (Exception e) {
logger.errorMessage("执行默认服务端停止程序时出错,服务端名:{0}", e,name);
}
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.pageflowbasiccomponent
public void execute(Context context) {
try {
WebContext webContext = (WebContext) context;
HttpServletRequest request = webContext.getRequest();
request.getRequestDispatcher(path).forward(request,
webContext.getResponse());
} catch (Exception e) {
logger.errorMessage("Forward到地址[{}]出错,错误原因:{}", e, path,
e.getMessage());
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.jdbctemplatedslsession
private <T> Map<String, Object>[] convertBeanToArray(List<T> params) {
Map<String, Object>[] batchArgs = new Map[params.size()];
for (int j = 0; j < params.size(); j++) {
try {
batchArgs[j] = convertMap(params.get(j));
} catch (Exception e) {
LOGGER.errorMessage("pojo对象转换Map出错", e);
throw new DslRuntimeException(e);
}
}
return batchArgs;
}
代码示例来源:origin: org.tinygroup/org.tinygroup.cepcoremutiremoteimpl
public static void updateResponse(String eventId, Event event) {
// 如果该eventId已不在列表之中,那么该event也许是之前已被超时清理了
if (!responseMap.containsKey(eventId)) {
String serviceId = event.getServiceRequest().getServiceId();
TinyRequestHasTimeOutException e = new TinyRequestHasTimeOutException(
eventId, serviceId);
logger.errorMessage(e.getMessage());
throw e;
}
BlockingQueue<Event> queue = responseMap.get(eventId);
queue.add(event);
}
代码示例来源:origin: org.tinygroup/org.tinygroup.templateengine
private void addStaticClass(XmlNode totalConfig) {
List<XmlNode> list = totalConfig.getSubNodes(STATIC_CLASS_NAME);
if (list != null) {
for (XmlNode node : list) {
try {
templateEngine.registerStaticClassOperator(new XmlNodeStaticClassOperator(node));
} catch (Exception e) {
LOGGER.errorMessage("加载用户注册的静态类出错", e);
}
}
}
}
代码示例来源:origin: org.tinygroup/threadgroup
public void run() {
try {
logger.logMessage(LogLevel.INFO, "线程<{}-{}>运行开始...",
multiThreadProcess.getName(), name);
action();
logger.logMessage(LogLevel.INFO, "线程<{}-{}>运行结束",
multiThreadProcess.getName(), name);
} catch (Exception e) {
logger.errorMessage(e.getMessage(), e);
}
multiThreadProcess.threadDone();
}
内容来源于网络,如有侵权,请联系作者删除!