Skip to content

Commit

Permalink
[improve][plugin][datareader] capture IndexOutOfBoundsException
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed Jan 19, 2025
1 parent b8d6e29 commit 903ac58
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,12 @@ private void validateIncrRule(Configuration eachColumnConfig)
value + " is illegal, it must be a digital string"
);
}
catch(IndexOutOfBoundsException e) {
throw AddaxException.asAddaxException(
ILLEGAL_VALUE,
value + " is illegal, it must format as 'start, step'"
);
}
}
else if ("date".equals(dType)) {
String[] fields = value.split(",");
Expand Down

0 comments on commit 903ac58

Please sign in to comment.