配置错误返回修改
This commit is contained in:
parent
c6c63327e6
commit
f0cd49362b
@ -192,7 +192,7 @@ public class FaultRecorderServiceImpl implements FaultRecorderService {
|
|||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("文件解析异常:{}",e);
|
log.error("文件解析异常:{}",e);
|
||||||
throw new ServiceException("配置解析异常");
|
throw new ServiceException("文件解析异常,请检查配置");
|
||||||
}
|
}
|
||||||
return resultMap;
|
return resultMap;
|
||||||
}
|
}
|
||||||
@ -231,6 +231,7 @@ public class FaultRecorderServiceImpl implements FaultRecorderService {
|
|||||||
stringListMap = parseDataCurve(result, timeFormat);
|
stringListMap = parseDataCurve(result, timeFormat);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("文件解析失败{}", e);
|
log.error("文件解析失败{}", e);
|
||||||
|
throw new ServiceException("文件解析失败");
|
||||||
}
|
}
|
||||||
return stringListMap;
|
return stringListMap;
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ public class PlcLogsServiceImpl implements PlcLogService {
|
|||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("文件解析异常:{}",e);
|
log.error("文件解析异常:{}",e);
|
||||||
throw new ServiceException("配置解析异常");
|
throw new ServiceException("文件解析异常,请检查配置");
|
||||||
}
|
}
|
||||||
return resultMap;
|
return resultMap;
|
||||||
}
|
}
|
||||||
@ -163,6 +163,7 @@ public class PlcLogsServiceImpl implements PlcLogService {
|
|||||||
stringListMap = parseDataCurve(result, timeFormat);
|
stringListMap = parseDataCurve(result, timeFormat);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("文件解析失败{}", e);
|
log.error("文件解析失败{}", e);
|
||||||
|
throw new ServiceException("文件解析失败");
|
||||||
}
|
}
|
||||||
return stringListMap;
|
return stringListMap;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user