1. /*
  2. * @(#)NameAlreadyBoundException.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;
  11. /**
  12. * This exception is thrown by methods to indicate that
  13. * a binding cannot be added because the name is already bound to
  14. * another object.
  15. * <p>
  16. * Synchronization and serialization issues that apply to NamingException
  17. * apply directly here.
  18. *
  19. * @author Rosanna Lee
  20. * @author Scott Seligman
  21. * @version 1.4 00/02/02
  22. *
  23. * @see Context#bind
  24. * @see Context#rebind
  25. * @see Context#createSubcontext
  26. * @see javax.naming.directory.DirContext#bind
  27. * @see javax.naming.directory.DirContext#rebind
  28. * @see javax.naming.directory.DirContext#createSubcontext
  29. * @since 1.3
  30. */
  31. public class NameAlreadyBoundException extends NamingException {
  32. /**
  33. * Constructs a new instance of NameAlreadyBoundException using the
  34. * explanation supplied. All other fields default to null.
  35. *
  36. *
  37. * @param explanation Possibly null additional detail about this exception.
  38. * @see java.lang.Throwable#getMessage
  39. */
  40. public NameAlreadyBoundException(String explanation) {
  41. super(explanation);
  42. }
  43. /**
  44. * Constructs a new instance of NameAlreadyBoundException.
  45. * All fields are set to null;
  46. */
  47. public NameAlreadyBoundException() {
  48. super();
  49. }
  50. /**
  51. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  52. */
  53. private static final long serialVersionUID = -8491441000356780586L;
  54. }