Example usage for javax.naming InvalidNameException InvalidNameException

List of usage examples for javax.naming InvalidNameException InvalidNameException

Introduction

In this page you can find the example usage for javax.naming InvalidNameException InvalidNameException.

Prototype

public InvalidNameException(String explanation) 

Source Link

Document

Constructs an instance of InvalidNameException using an explanation of the problem.

Usage

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;
}