修改错误的异常文本

This commit is contained in:
LeoLee
2021-12-11 21:17:44 +08:00
parent 1584644a79
commit 273a9221e4
2 changed files with 4 additions and 4 deletions

View File

@@ -306,7 +306,7 @@ public class FlowExecutor {
Integer slotIndex, boolean isInnerChain) throws Exception {
if (null == param) {
//data slot is a ConcurrentHashMap, so null value will trigger NullPointerException
throw new NullParamException("data slot cann't accept null param");
throw new NullParamException("data slot can't accept null param");
}
return this.execute0(chainId, param, slotClazz, slotIndex, isInnerChain);
}
@@ -369,7 +369,7 @@ public class FlowExecutor {
boolean isInnerChain) {
if (null == param) {
//data slot is a ConcurrentHashMap, so null value will trigger NullPointerException
throw new NullParamException("data slot cann't accept null param");
throw new NullParamException("data slot can't accept null param");
}
return execute2Resp0(chainId, param, slotClazz, slotIndex, isInnerChain);
}

View File

@@ -59,7 +59,7 @@ public abstract class AbsSlot implements Slot {
public <T> void setInput(String nodeId,T t){
if (null == t) {
//data slot is a ConcurrentHashMap, so null value will trigger NullPointerException
throw new NullParamException("data slot cann't accept null param");
throw new NullParamException("data slot can't accept null param");
}
dataMap.put(NODE_INPUT_PREFIX + nodeId, t);
}
@@ -67,7 +67,7 @@ public abstract class AbsSlot implements Slot {
public <T> void setOutput(String nodeId,T t){
if (null == t) {
//data slot is a ConcurrentHashMap, so null value will trigger NullPointerException
throw new NullParamException("data slot cann't accept null param");
throw new NullParamException("data slot can't accept null param");
}
dataMap.put(NODE_OUTPUT_PREFIX + nodeId, t);
}