日志查询错误时统一分类提示信息
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user