异常处理优化

This commit is contained in:
bryan.zhang
2018-01-18 18:28:38 +08:00
parent 7b5937a0f4
commit c14e277b04
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
<artifactId>liteflow</artifactId>
<packaging>jar</packaging>
<modelVersion>4.0.0</modelVersion>
<version>1.2.18</version>
<version>1.2.19</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@@ -132,6 +132,7 @@ public class FlowExecutor {
if(component.isContinueOnError()){
LOG.error("[{}]:component[{}] cause error,but flow is still go on",t,slot.getRequestId(),component.getClass().getSimpleName());
}else{
LOG.error("[{}]:executor cause error",t,slot.getRequestId());
throw t;
}
}
@@ -146,7 +147,6 @@ public class FlowExecutor {
}
return (T)slot;
}catch(Exception e){
LOG.error("[{}]:executor cause error",e,slot.getRequestId());
throw new FlowSystemException("executor cause error");
}finally{
if(!isInnerChain) {