Skip to content

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

@MrCreosote

Description

@MrCreosote

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions