public class NotContextException extends NamingException
It is also thrown when a particular subtype of context is required, such as a DirContext, and the resolved object is a context but not of the required subtype.
Synchronization and serialization issues that apply to NamingException apply directly here.
Context.destroySubcontext(javax.naming.Name)
,
Serialized FormremainingName, resolvedName, resolvedObj, rootException
Constructor and Description |
---|
NotContextException()
Constructs a new instance of NotContextException.
|
NotContextException(String explanation)
Constructs a new instance of NotContextException using an
explanation.
|
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public NotContextException(String explanation)
explanation
- Possibly null additional detail about this exception.Throwable.getMessage()
public NotContextException()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.