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