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()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.