1. /*
  2. * @(#)ContextNotEmptyException.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 when attempting to destroy a context that
  13. * is not empty.
  14. *<p>
  15. * If the program wants to handle this exception in particular, it
  16. * should catch ContextNotEmptyException explicitly before attempting to
  17. * catch NamingException. For example, after catching ContextNotEmptyException,
  18. * the program might try to remove the contents of the context before
  19. * reattempting the destroy.
  20. * <p>
  21. * Synchronization and serialization issues that apply to NamingException
  22. * apply directly here.
  23. *
  24. * @author Rosanna Lee
  25. * @author Scott Seligman
  26. * @version 1.4 00/02/02
  27. *
  28. * @see Context#destroySubcontext
  29. * @since 1.3
  30. */
  31. public class ContextNotEmptyException extends NamingException {
  32. /**
  33. * Constructs a new instance of ContextNotEmptyException using an
  34. * explanation. All other fields default to null.
  35. *
  36. * @param explanation Possibly null string containing
  37. * additional detail about this exception.
  38. * @see java.lang.Throwable#getMessage
  39. */
  40. public ContextNotEmptyException(String explanation) {
  41. super(explanation);
  42. }
  43. /**
  44. * Constructs a new instance of ContextNotEmptyException with
  45. * all name resolution fields and explanation initialized to null.
  46. */
  47. public ContextNotEmptyException() {
  48. super();
  49. }
  50. /**
  51. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  52. */
  53. private static final long serialVersionUID = 1090963683348219877L;
  54. }