!103 优化WHEN操作符的异常提示

Merge pull request !103 from gycode/dev
This commit is contained in:
铂赛东
2022-09-07 03:10:59 +00:00
committed by Gitee

View File

@@ -21,7 +21,7 @@ public class WhenOperator extends Operator {
public WhenCondition executeInner(Object[] objects) throws Exception {
try {
if (objects.length == 0) {
throw new QLException("parameter error");
throw new QLException("parameter is empty");
}
WhenCondition whenCondition = new WhenCondition();
@@ -29,7 +29,7 @@ public class WhenOperator extends Operator {
if (obj instanceof Executable) {
whenCondition.addExecutable((Executable) obj);
} else {
throw new QLException("parameter error");
throw new QLException("parameter must be executable item");
}
}
return whenCondition;