1. /*
  2. * @(#)NameAlreadyBoundException.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;
  8. /**
  9. * This exception is thrown by methods to indicate that
  10. * a binding cannot be added because the name is already bound to
  11. * another object.
  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.6 03/01/23
  19. *
  20. * @see Context#bind
  21. * @see Context#rebind
  22. * @see Context#createSubcontext
  23. * @see javax.naming.directory.DirContext#bind
  24. * @see javax.naming.directory.DirContext#rebind
  25. * @see javax.naming.directory.DirContext#createSubcontext
  26. * @since 1.3
  27. */
  28. public class NameAlreadyBoundException extends NamingException {
  29. /**
  30. * Constructs a new instance of NameAlreadyBoundException using the
  31. * explanation supplied. All other fields default to null.
  32. *
  33. *
  34. * @param explanation Possibly null additional detail about this exception.
  35. * @see java.lang.Throwable#getMessage
  36. */
  37. public NameAlreadyBoundException(String explanation) {
  38. super(explanation);
  39. }
  40. /**
  41. * Constructs a new instance of NameAlreadyBoundException.
  42. * All fields are set to null;
  43. */
  44. public NameAlreadyBoundException() {
  45. super();
  46. }
  47. /**
  48. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  49. */
  50. private static final long serialVersionUID = -8491441000356780586L;
  51. }