javax.naming
public class: ContextNotEmptyException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.naming.NamingException
javax.naming.ContextNotEmptyException
All Implemented Interfaces:
Serializable
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.
Also see:
- Context#destroySubcontext
- author:
Rosanna
- Lee
- author:
Scott
- Seligman
- since:
1.3
-
Constructor: |
public ContextNotEmptyException() {
super();
}
Constructs a new instance of ContextNotEmptyException with
all name resolution fields and explanation initialized to null. |
public ContextNotEmptyException(String explanation) {
super(explanation);
}
Constructs a new instance of ContextNotEmptyException using an
explanation. All other fields default to null. Parameters:
explanation - Possibly null string containing
additional detail about this exception.
Also see:
- java.lang.Throwable#getMessage
|
Methods from javax.naming.NamingException: |
---|
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString |
Methods from java.lang.Throwable: |
---|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getStackTraceDepth, getStackTraceElement, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |