1. /*
  2. * @(#)InvalidAttributesException.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. package javax.naming.directory;
  8. import javax.naming.NamingException;
  9. /**
  10. * This exception is thrown when an attempt is
  11. * made to add or modify an attribute set that has been specified
  12. * incompletely or incorrectly. This could happen, for example,
  13. * when attempting to add or modify a binding, or to create a new
  14. * subcontext without specifying all the mandatory attributes
  15. * required for creation of the object. Another situation in
  16. * which this exception is thrown is by specification of incompatible
  17. * attributes within the same attribute set, or attributes in conflict
  18. * with that specified by the object's schema.
  19. * <p>
  20. * Synchronization and serialization issues that apply to NamingException
  21. * apply directly here.
  22. *
  23. * @author Rosanna Lee
  24. * @author Scott Seligman
  25. * @version 1.7 03/12/19
  26. * @since 1.3
  27. */
  28. public class InvalidAttributesException extends NamingException {
  29. /**
  30. * Constructs a new instance of InvalidAttributesException using an
  31. * explanation. All other fields are set to null.
  32. * @param explanation Additional detail about this exception. Can be null.
  33. * @see java.lang.Throwable#getMessage
  34. */
  35. public InvalidAttributesException(String explanation) {
  36. super(explanation);
  37. }
  38. /**
  39. * Constructs a new instance of InvalidAttributesException.
  40. * All fields are set to null.
  41. */
  42. public InvalidAttributesException() {
  43. super();
  44. }
  45. /**
  46. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  47. */
  48. private static final long serialVersionUID = 2607612850539889765L;
  49. }