日志查询错误时统一分类提示信息

This commit is contained in:
zhanghongqing
2018-08-03 10:59:20 +08:00
parent e70ca37255
commit 09d7ecfabc
31 changed files with 53 additions and 30 deletions

View File

@@ -148,8 +148,9 @@ public class HttpClientUtil {
if (status == HttpStatus.SC_OK) {
result = EntityUtils.toString(response.getEntity());
logger.debug("获取消息成功,相应内容如下: " + result);
} else {
throw new MaatConvertException(requestContext.getMessage("request_service_failed") + ":" + status);
throw new MaatConvertException(status+"");
}
} catch (SocketTimeoutException e) {
logger.error("获取消息失败 ", e);