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