import javax.naming.InvalidNameException;
import javax.naming.ldap.LdapName;
-import org.argeo.cms.CmsException;
import org.osgi.service.useradmin.Authorization;
import org.osgi.service.useradmin.Role;
try {
this.name = new LdapName(name);
} catch (InvalidNameException e) {
- throw new CmsException("Badly formatted role name", e);
+ throw new IllegalArgumentException("Badly formatted role name", e);
}
if (userPrincipal != null)
causes.add(userPrincipal);