enhancement #I821F1 补充注释

This commit is contained in:
luoyi
2023-09-27 20:57:53 +08:00
parent f64b97c7a2
commit 5785c59b95
2 changed files with 2 additions and 2 deletions

View File

@@ -202,9 +202,8 @@ public class LiteFlowChainELBuilder {
try {
objectMapper.writeValueAsString(this.chain);
} catch (Exception e) {
e.printStackTrace();
if (e instanceof JsonMappingException) {
throw new CyclicDependencyException(StrUtil.format("There is a circular dependency in the chain[{}], please check carefully.", chain.getChainId()));
throw new CyclicDependencyException(StrUtil.format("There is a circular dependency in the chain[{}], please check carefully.", chain.getChainId(), e));
} else {
throw new ParseException(e.getMessage());
}

View File

@@ -47,6 +47,7 @@ public class Node implements Executable, Cloneable, Rollbackable{
private String language;
// 增加该注解,避免在使用 Jackson 序列化检测循环引用时出现不必要异常
@JsonIgnore
private NodeComponent instance;