mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
fix #I69VAR 修改单词错误
This commit is contained in:
@@ -31,7 +31,7 @@ import com.yomahub.liteflow.builder.el.operator.ToOperator;
|
||||
import com.yomahub.liteflow.builder.el.operator.WhenOperator;
|
||||
import com.yomahub.liteflow.builder.el.operator.WhileOperator;
|
||||
import com.yomahub.liteflow.common.ChainConstant;
|
||||
import com.yomahub.liteflow.exception.DataNofFoundException;
|
||||
import com.yomahub.liteflow.exception.DataNotFoundException;
|
||||
import com.yomahub.liteflow.exception.ELParseException;
|
||||
import com.yomahub.liteflow.exception.FlowSystemException;
|
||||
import com.yomahub.liteflow.flow.FlowBus;
|
||||
@@ -176,9 +176,9 @@ public class LiteFlowChainELBuilder {
|
||||
return this;
|
||||
} catch (QLException e) {
|
||||
// EL 底层会包装异常,这里是曲线处理
|
||||
if (Objects.equals(e.getCause().getMessage(), DataNofFoundException.MSG)) {
|
||||
if (Objects.equals(e.getCause().getMessage(), DataNotFoundException.MSG)) {
|
||||
// 构建错误信息
|
||||
String msg = buildDataNofFoundExceptionMsg(elStr);
|
||||
String msg = buildDataNotFoundExceptionMsg(elStr);
|
||||
throw new ELParseException(msg);
|
||||
}
|
||||
throw new ELParseException(e.getCause().getMessage());
|
||||
@@ -231,7 +231,7 @@ public class LiteFlowChainELBuilder {
|
||||
*
|
||||
* @param elStr el 表达式
|
||||
*/
|
||||
private String buildDataNofFoundExceptionMsg(String elStr) {
|
||||
private String buildDataNotFoundExceptionMsg(String elStr) {
|
||||
String msg = String.format("[node/chain is not exist or node/chain not register]\n elStr=%s", StrUtil.trim(elStr));
|
||||
try {
|
||||
InstructionSet parseResult = EXPRESS_RUNNER.getInstructionSetFromLocalCache(elStr);
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.yomahub.liteflow.builder.el.operator.base;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ql.util.express.exception.QLException;
|
||||
import com.yomahub.liteflow.exception.DataNofFoundException;
|
||||
import com.yomahub.liteflow.exception.DataNotFoundException;
|
||||
import com.yomahub.liteflow.flow.element.Node;
|
||||
|
||||
import java.util.Objects;
|
||||
@@ -156,7 +156,7 @@ public class OperatorHelper {
|
||||
public static void checkNodeAndChainExist(Object[] objects) throws QLException {
|
||||
for (Object object : objects) {
|
||||
if (Objects.isNull(object)) {
|
||||
throw new QLException(DataNofFoundException.MSG);
|
||||
throw new QLException(DataNotFoundException.MSG);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ package com.yomahub.liteflow.exception;
|
||||
* 未找到数据异常
|
||||
* @author tangkc
|
||||
*/
|
||||
public class DataNofFoundException extends RuntimeException {
|
||||
public static final String MSG = "DataNofFoundException";
|
||||
public class DataNotFoundException extends RuntimeException {
|
||||
public static final String MSG = "DataNotFoundException";
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -14,11 +14,11 @@ public class DataNofFoundException extends RuntimeException {
|
||||
*/
|
||||
private String message;
|
||||
|
||||
public DataNofFoundException() {
|
||||
public DataNotFoundException() {
|
||||
this.message = MSG;
|
||||
}
|
||||
|
||||
public DataNofFoundException(String message) {
|
||||
public DataNotFoundException(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user