FileDocCategorySizeDatePackage
ContextNotEmptyException.javaAPI DocJava SE 5 API1697Fri Aug 26 14:57:38 BST 2005javax.naming

ContextNotEmptyException

public class ContextNotEmptyException extends NamingException
This exception is thrown when attempting to destroy a context that is not empty.

If the program wants to handle this exception in particular, it should catch ContextNotEmptyException explicitly before attempting to catch NamingException. For example, after catching ContextNotEmptyException, the program might try to remove the contents of the context before reattempting the destroy.

Synchronization and serialization issues that apply to NamingException apply directly here.

author
Rosanna Lee
author
Scott Seligman
version
1.7 03/12/19
see
Context#destroySubcontext
since
1.3

Fields Summary
private static final long
serialVersionUID
Use serialVersionUID from JNDI 1.1.1 for interoperability
Constructors Summary
public ContextNotEmptyException(String explanation)
Constructs a new instance of ContextNotEmptyException using an explanation. All other fields default to null.

param
explanation Possibly null string containing additional detail about this exception.
see
java.lang.Throwable#getMessage

	super(explanation);
    
public ContextNotEmptyException()
Constructs a new instance of ContextNotEmptyException with all name resolution fields and explanation initialized to null.

	super();
    
Methods Summary