异常抛出

web_backend_develope
chenlw 8 years ago
parent 90e6f3e25d
commit 39171057dd

@ -62,8 +62,10 @@ public class RemoveData {
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
map.put("sourcePath", sourceFolderName); map.put("sourcePath", sourceFolderName);
map.put("destPath", destFolderName); map.put("destPath", destFolderName);
String rest ="";
try {
//请求web //请求web
String rest = ht.sendPost("data/abortCopyData", map); rest = ht.sendPost("data/abortCopyData", map);
if (null == rest || "".equals(rest)) { if (null == rest || "".equals(rest)) {
log.error(" --- gluster is disconnect ! \n"); log.error(" --- gluster is disconnect ! \n");
return 0; return 0;
@ -74,6 +76,11 @@ public class RemoveData {
double copyResult = (double) data.getData(); double copyResult = (double) data.getData();
reslut = (int) copyResult; reslut = (int) copyResult;
getExcept(data); getExcept(data);
} catch (Exception e) {
log.error(rest);
log.error(e);
throw new CustomException("请求gfs服务异常 -- data/removeData ", e, rest);
}
return reslut; return reslut;
} }

Loading…
Cancel
Save