1 /* 2 * @(#)InvalidNameException.java 1.7 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package javax.naming; 9 10 /** 11 * This exception indicates that the name being specified does 12 * not conform to the naming syntax of a naming system. 13 * This exception is thrown by any of the methods that does name 14 * parsing (such as those in Context, DirContext, CompositeName and CompoundName). 15 * <p> 16 * Synchronization and serialization issues that apply to NamingException 17 * apply directly here. 18 * 19 * @author Rosanna Lee 20 * @author Scott Seligman 21 * @version 1.7 03/12/19 22 * 23 * @see Context 24 * @see javax.naming.directory.DirContext 25 * @see CompositeName 26 * @see CompoundName 27 * @see NameParser 28 * @since 1.3 29 */ 30 31 public class InvalidNameException extends NamingException { 32 /** 33 * Constructs an instance of InvalidNameException using an 34 * explanation of the problem. 35 * All other fields are initialized to null. 36 * @param explanation A possibly null message explaining the problem. 37 * @see java.lang.Throwable#getMessage 38 */ 39 public InvalidNameException(String explanation) { 40 super(explanation); 41 } 42 43 /** 44 * Constructs an instance of InvalidNameException with 45 * all fields set to null. 46 */ 47 public InvalidNameException() { 48 super(); 49 } 50 51 /** 52 * Use serialVersionUID from JNDI 1.1.1 for interoperability 53 */ 54 private static final long serialVersionUID = -8370672380823801105L; 55 } 56