List of usage examples for javax.naming InvalidNameException InvalidNameException
public InvalidNameException(String explanation)
From source file:org.springframework.ldap.core.DistinguishedName.java
public Name add(int index, String string) throws InvalidNameException { try {/*w ww. ja v a 2 s.co m*/ names.add(index, new LdapRdn(string)); } catch (BadLdapGrammarException e) { throw new InvalidNameException("Failed to parse rdn '" + string + "'"); } return this; }