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