public class ContextNotEmptyException extends NamingException
如果程序要特别处理这个异常,它应该在试图抓住namingexception抓contextnotemptyexception明确。例如,contextnotemptyexception抓后,程序会试图破坏之前再尝试删除上下文的内容。
同步和序列化的问题,适用于namingexception直接应用在这里。
Context.destroySubcontext(javax.naming.Name)
,
Serialized Form
remainingName, resolvedName, resolvedObj, rootException
Constructor and Description |
---|
ContextNotEmptyException()
构建一个新的实例contextnotemptyexception所有名称解析和解释字段初始化为null。
|
ContextNotEmptyException(String explanation)
构建了一个新的实例contextnotemptyexception使用说明。
|
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 ContextNotEmptyException(String explanation)
explanation
-可能是空字符串包含关于该异常附加细节。
Throwable.getMessage()
public ContextNotEmptyException()
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.