优化报错提示

This commit is contained in:
everywhere.z
2024-08-19 16:14:01 +08:00
parent 57c9a327e7
commit 6c0d8cc922

View File

@@ -40,7 +40,7 @@ public class OperatorHelper {
public static void checkObjectSizeGteTwo(Object[] objects) throws QLException { public static void checkObjectSizeGteTwo(Object[] objects) throws QLException {
checkObjectSizeGtZero(objects); checkObjectSizeGtZero(objects);
if (objects.length < 2) { if (objects.length < 2) {
throw new QLException("parameter error"); throw new QLException("parameter size error");
} }
} }
@@ -81,7 +81,7 @@ public class OperatorHelper {
checkObjectSizeGtZero(objects); checkObjectSizeGtZero(objects);
if (objects.length != size) { if (objects.length != size) {
throw new QLException("parameter error"); throw new QLException("parameter size error");
} }
} }
@@ -96,7 +96,7 @@ public class OperatorHelper {
checkObjectSizeGtZero(objects); checkObjectSizeGtZero(objects);
if (objects.length != size1 && objects.length != size2) { if (objects.length != size1 && objects.length != size2) {
throw new QLException("parameter error"); throw new QLException("parameter size error");
} }
} }