- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.naming.NamingException
-
- javax.naming.NameAlreadyBoundException
-
- All Implemented Interfaces:
-
Serializable
public class NameAlreadyBoundException extends NamingException
通过方法抛出此异常,表示无法添加绑定,因为该名称已被绑定到另一个对象。适用于NamingException的同步和序列化问题直接在这里应用。
- 从以下版本开始:
- 1.3
- 另请参见:
-
Context.bind(javax.naming.Name, java.lang.Object)
,Context.rebind(javax.naming.Name, java.lang.Object)
,Context.createSubcontext(javax.naming.Name)
,DirContext.bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)
,DirContext.rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)
,DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes)
, Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
-
-
构造方法摘要
构造方法 Constructor 描述 NameAlreadyBoundException()
构造一个新的NameAlreadyBoundException实例。NameAlreadyBoundException(String explanation)
使用提供的说明构造一个新的NameAlreadyBoundException实例。
-
方法摘要
-
Methods inherited from class javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
构造方法详细信息
-
NameAlreadyBoundException
public NameAlreadyBoundException(String explanation)
使用提供的说明构造一个新的NameAlreadyBoundException实例。 所有其他字段默认为null。- 参数
-
explanation
- 可能是关于此异常的额外详细信息。 - 另请参见:
-
Throwable.getMessage()
-
NameAlreadyBoundException
public NameAlreadyBoundException()
构造一个新的NameAlreadyBoundException实例。 所有字段都设置为null;
-
-