public abstract class NamingSecurityException extends NamingException
如果程序想要特别处理这个异常,那么在尝试捕获NamingException之前,它应该明确地捕获NamingSecurityException。 程序可能想要这样做,例如,如果它想要特别从其他类型的命名异常处理与安全相关的异常。
适用于NamingException的同步和序列化问题直接在这里应用。
remainingName, resolvedName, resolvedObj, rootException
Constructor and Description |
---|
NamingSecurityException()
构造一个新的NamingSecurityException实例。
|
NamingSecurityException(String explanation)
使用提供的说明构造一个新的NamingSecurityException实例。
|
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 NamingSecurityException(String explanation)
explanation
- 有可能是关于此异常的额外详细信息。
Throwable.getMessage()
public NamingSecurityException()
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.