public class NoInitialContextException extends NamingException
在与InitialContext的任何交互期间都可以抛出此异常,不仅在构建InitialContext时。 例如,初始上下文的实现可能只有在实际方法被调用时才可能懒惰地检索上下文。 应用程序不应该依赖于何时确定初始上下文的存在。
适用于NamingException的同步和序列化问题直接在这里应用。
remainingName, resolvedName, resolvedObj, rootException
Constructor and Description |
---|
NoInitialContextException()
构造一个NoInitialContextException的实例。
|
NoInitialContextException(String explanation)
构造一个NoInitialContextException的实例,并带有解释。
|
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 NoInitialContextException()
public NoInitialContextException(String explanation)
explanation
- 可能是关于此异常的额外详细信息。
Throwable.getMessage()
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.