本文整理了Java中org.elasticsearch.rest.XContentThrowableRestResponse.<init>()
方法的一些代码示例,展示了XContentThrowableRestResponse.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XContentThrowableRestResponse.<init>()
方法的具体详情如下:
包路径:org.elasticsearch.rest.XContentThrowableRestResponse
类名称:XContentThrowableRestResponse
方法名:<init>
暂无
代码示例来源:origin: com.github.tlrx/elasticsearch-view-plugin
public void onFailure(Throwable e) {
try {
if (e instanceof ElasticSearchViewNotFoundException) {
channel.sendResponse(new XContentThrowableRestResponse(request, NOT_FOUND, e));
} else {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
}
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
});
代码示例来源:origin: tlrx/elasticsearch-view-plugin
public void onFailure(Throwable e) {
try {
if (e instanceof ElasticSearchViewNotFoundException) {
channel.sendResponse(new XContentThrowableRestResponse(request, NOT_FOUND, e));
} else {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
}
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
});
代码示例来源:origin: medcl/elasticsearch-partialupdate
public void onFailure(Throwable e) {
try {
channel.sendResponse(new XContentThrowableRestResponse(
request, e));
} catch (IOException e1) {
e1.printStackTrace();
logger.error("failed to send failure response", e1);
}
}
});
代码示例来源:origin: crate/elasticsearch-inout-plugin
public void onFailure(Throwable e) {
try {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
});
代码示例来源:origin: medcl/elasticsearch-carrot2
@Override
public void onFailure(Throwable e) {
try {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
});
代码示例来源:origin: crate/elasticsearch-inout-plugin
public void onFailure(Throwable e) {
try {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
});
代码示例来源:origin: crate/elasticsearch-inout-plugin
public void onFailure(Throwable e) {
try {
channel.sendResponse(
new XContentThrowableRestResponse(request,
e));
} catch (IOException e1) {
logger.error("Failed to send failure response",
e1);
}
}
});
代码示例来源:origin: jprante/elasticsearch-gatherer
@Override
public void onFailure(Throwable e) {
try {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
});
代码示例来源:origin: bleskes/elasticfacets
@Override
public void onFailure(Throwable e) {
try {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
});
代码示例来源:origin: mattweber/elasticsearch-mocksolrplugin
@Override
public void onFailure(Throwable e) {
try {
logger.error("Error processing executing search", e);
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
});
代码示例来源:origin: jprante/elasticsearch-gatherer
public void onFailure(Throwable e) {
try {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
try {
logger.error(ex.getMessage(), ex);
channel.sendResponse(new XContentThrowableRestResponse(request, ex));
} catch (Exception ex2) {
logger.error(ex2.getMessage(), ex2);
代码示例来源:origin: mattweber/elasticsearch-mocksolrplugin
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send error response", e1);
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send error response", e1);
代码示例来源:origin: karussell/elasticsearch-rollindex
} catch (IOException ex) {
try {
channel.sendResponse(new XContentThrowableRestResponse(request, ex));
} catch (Exception ex2) {
logger.error("problem while rolling index", ex2);
代码示例来源:origin: medcl/elasticsearch-partialupdate
channel.sendResponse(new XContentThrowableRestResponse(
request, e));
} catch (IOException e1) {
内容来源于网络,如有侵权,请联系作者删除!