fix:1.修改来自于filesource的SOH、ALERT文件失败处理逻辑

This commit is contained in:
panbaolin 2024-01-02 17:12:40 +08:00
parent ad90c521d0
commit a27ddf6c2c
3 changed files with 9 additions and 1 deletions

View File

@ -243,7 +243,10 @@ public abstract class AbstractSpectrumHandler extends AbstractChain {
}
/**
* 处理解析失败的文件上传到undeal目录
* 处理解析失败的文件
* 1.格式错误移动到errorfile
* 2.filerepeat错误直接删除
* 3.非filerepeat错误移动到undel
* @throws FileNotFoundException
*/
protected void handleParseingFailFile(Exception e) throws FileNotFoundException {

View File

@ -89,6 +89,9 @@ public class AlertSpectrum extends AbstractSpectrumHandler{
}catch (Exception e){
//异常返回文件名称用于报错日志
super.returnFileName.append(super.spectrumFile.getName());
//处理解析失败的文件
super.handleParseingFailFile(e);
throw e;
}finally {
//把流程日志保存到日志目录

View File

@ -91,6 +91,8 @@ public class HealthStatusSpectrum extends AbstractSpectrumHandler{
}catch (Exception e){
//异常返回文件名称用于报错日志
super.returnFileName.append(super.spectrumFile.getName());
//处理解析失败的文件
super.handleParseingFailFile(e);
throw e;
}
}