mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
!179 enhancement #I6URA5 liteflow异常输出信息优化
Merge pull request !179 from 与或非/issues/I6URA5
This commit is contained in:
@@ -100,8 +100,7 @@ public class LiteFlowChainELBuilder {
|
||||
public LiteFlowChainELBuilder setChainName(String chainName) {
|
||||
if (FlowBus.containChain(chainName)) {
|
||||
this.chain = FlowBus.getChain(chainName);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.chain.setChainName(chainName);
|
||||
}
|
||||
return this;
|
||||
@@ -110,8 +109,7 @@ public class LiteFlowChainELBuilder {
|
||||
public LiteFlowChainELBuilder setChainId(String chainId) {
|
||||
if (FlowBus.containChain(chainId)) {
|
||||
this.chain = FlowBus.getChain(chainId);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.chain.setChainId(chainId);
|
||||
}
|
||||
return this;
|
||||
@@ -145,8 +143,7 @@ public class LiteFlowChainELBuilder {
|
||||
// 把主要的condition加入
|
||||
this.conditionList.add(condition);
|
||||
return this;
|
||||
}
|
||||
catch (QLException e) {
|
||||
} catch (QLException e) {
|
||||
// EL 底层会包装异常,这里是曲线处理
|
||||
if (Objects.equals(e.getCause().getMessage(), DataNotFoundException.MSG)) {
|
||||
// 构建错误信息
|
||||
@@ -154,9 +151,9 @@ public class LiteFlowChainELBuilder {
|
||||
throw new ELParseException(msg);
|
||||
}
|
||||
throw new ELParseException(e.getCause().getMessage());
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new ELParseException(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
String errMsg = StrUtil.format("parse el fail in this chain[{}];\r\n", chain.getChainId());
|
||||
throw new ELParseException(errMsg + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,8 +166,7 @@ public class LiteFlowChainELBuilder {
|
||||
try {
|
||||
LiteFlowChainELBuilder.createChain().setEL(elStr);
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
catch (ELParseException e) {
|
||||
} catch (ELParseException e) {
|
||||
LOG.error(e.getMessage());
|
||||
}
|
||||
return Boolean.FALSE;
|
||||
@@ -249,8 +245,7 @@ public class LiteFlowChainELBuilder {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex) {
|
||||
} catch (Exception ex) {
|
||||
// ignore
|
||||
}
|
||||
return msg;
|
||||
|
||||
Reference in New Issue
Block a user