1. /*
  2. * @(#)AttributeInUseException.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 operation attempts
  11. * to add an attribute that already exists.
  12. * <p>
  13. * Synchronization and serialization issues that apply to NamingException
  14. * apply directly here.
  15. *
  16. * @author Rosanna Lee
  17. * @author Scott Seligman
  18. * @version 1.7 03/12/19
  19. *
  20. * @see DirContext#modifyAttributes
  21. * @since 1.3
  22. */
  23. public class AttributeInUseException extends NamingException {
  24. /**
  25. * Constructs a new instance of AttributeInUseException with
  26. * an explanation. All other fields are set to null.
  27. *
  28. * @param explanation Possibly null additional detail about this exception.
  29. * @see java.lang.Throwable#getMessage
  30. */
  31. public AttributeInUseException(String explanation) {
  32. super(explanation);
  33. }
  34. /**
  35. * Constructs a new instance of AttributeInUseException.
  36. * All fields are initialized to null.
  37. */
  38. public AttributeInUseException() {
  39. super();
  40. }
  41. /**
  42. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  43. */
  44. private static final long serialVersionUID = 4437710305529322564L;
  45. }