mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
优化报错提示
This commit is contained in:
@@ -40,7 +40,7 @@ public class OperatorHelper {
|
||||
public static void checkObjectSizeGteTwo(Object[] objects) throws QLException {
|
||||
checkObjectSizeGtZero(objects);
|
||||
if (objects.length < 2) {
|
||||
throw new QLException("parameter error");
|
||||
throw new QLException("parameter size error");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ public class OperatorHelper {
|
||||
checkObjectSizeGtZero(objects);
|
||||
|
||||
if (objects.length != size) {
|
||||
throw new QLException("parameter error");
|
||||
throw new QLException("parameter size error");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ public class OperatorHelper {
|
||||
checkObjectSizeGtZero(objects);
|
||||
|
||||
if (objects.length != size1 && objects.length != size2) {
|
||||
throw new QLException("parameter error");
|
||||
throw new QLException("parameter size error");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user