Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If one user in a set of users for validation is an illegal user name, the entire call fails #352

Open
MrCreosote opened this issue Jan 14, 2022 · 0 comments

Comments

@MrCreosote
Copy link
Member

Instead allow skipping invalid user names in the same way non-existent user names are skipped.

for (final String u: usersplt) {
try {
uns.add(new UserName(u.trim()));
} catch (MissingParameterException | IllegalParameterException e) {
//TODO CODE this exception could use some clean up
throw new IllegalParameterException(ErrorType.ILLEGAL_USER_NAME, String.format(
"Illegal user name [%s]: %s", u, e.getMessage()));
}
}
return uns;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant