public class NotContextException extends NamingException
当需要上下文的特定子类型时,也会抛出它,例如DirContext,并且已解析的对象是上下文,但不是必需的子类型。
适用于NamingException的同步和序列化问题直接在这里应用。
Context.destroySubcontext(javax.naming.Name)
,
Serialized Form
remainingName,
resolvedName, resolvedObj,
rootException
Constructor and Description |
---|
NotContextException()
构造一个新的NotContextException实例。
|
NotContextException(String explanation)
使用解释构造一个新的NotContextException实例。
|
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
- 可能是关于此异常的其他详细信息。
Throwable.getMessage()
public NotContextException()