APIdia Launch Partner
Top Description Fields Constructors Methods
javax.naming

public Class ContextNotEmptyException

extends NamingException
Class Inheritance

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.

Authors
Rosanna Lee, Scott Seligman
Since
1.3
See Also
Context#destroySubcontext

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability
Inherited from javax.naming.NamingException:
remainingNameresolvedNameresolvedObjrootException

Constructor Summary

AccessConstructor and Description
public
ContextNotEmptyException(String
Possibly null string containing additional detail about this exception.
explanation
)

Constructs a new instance of ContextNotEmptyException using an explanation.

public
ContextNotEmptyException()

Constructs a new instance of ContextNotEmptyException with all name resolution fields and explanation initialized to null.

Method Summary

Inherited from javax.naming.NamingException:
appendRemainingComponentappendRemainingNamegetCausegetExplanationgetRemainingNamegetResolvedNamegetResolvedObjgetRootCauseinitCausesetRemainingNamesetResolvedNamesetResolvedObjsetRootCausetoStringtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability

Constructor Detail

ContextNotEmptyExceptionback to summary
public ContextNotEmptyException(String explanation)

Constructs a new instance of ContextNotEmptyException using an explanation. All other fields default to null.

Parameters
explanation:String

Possibly null string containing additional detail about this exception.

See Also
java.lang.Throwable#getMessage
ContextNotEmptyExceptionback to summary
public ContextNotEmptyException()

Constructs a new instance of ContextNotEmptyException with all name resolution fields and explanation initialized to null.