1. /*
  2. * @(#)InvalidAttributeValueException.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.directory;
  8. import javax.naming.NamingException;
  9. /**
  10. * This class is thrown when an attempt is
  11. * made to add to an attribute a value that conflicts with the attribute's
  12. * schema definition. This could happen, for example, if attempting
  13. * to add an attribute with no value when the attribute is required
  14. * to have at least one value, or if attempting to add more than
  15. * one value to a single valued-attribute, or if attempting to
  16. * add a value that conflicts with the syntax of the attribute.
  17. * <p>
  18. * Synchronization and serialization issues that apply to NamingException
  19. * apply directly here.
  20. *
  21. * @author Rosanna Lee
  22. * @author Scott Seligman
  23. * @version 1.6 03/01/23
  24. * @since 1.3
  25. */
  26. public class InvalidAttributeValueException extends NamingException {
  27. /**
  28. * Constructs a new instance of InvalidAttributeValueException using
  29. * an explanation. All other fields are set to null.
  30. * @param explanation Additional detail about this exception. Can be null.
  31. * @see java.lang.Throwable#getMessage
  32. */
  33. public InvalidAttributeValueException(String explanation) {
  34. super(explanation);
  35. }
  36. /**
  37. * Constructs a new instance of InvalidAttributeValueException.
  38. * All fields are set to null.
  39. */
  40. public InvalidAttributeValueException() {
  41. super();
  42. }
  43. /**
  44. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  45. */
  46. private static final long serialVersionUID = 8720050295499275011L;
  47. }