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