javax.naming
类 OperationNotSupportedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.naming.NamingException
javax.naming.OperationNotSupportedException
- 所有已实现的接口:
- Serializable
public class OperationNotSupportedException
- extends NamingException
当上下文实现不支持将调用的操作时,抛出此异常。例如,如果某个服务器不支持 Context.bind() 方法,则在该服务器上调用 bind() 方法时,它将抛出 OperationNotSupportedException。
应用于 NamingException 的同步和序列化问题在这里可以直接应用。
- 从以下版本开始:
- 1.3
- 另请参见:
- 序列化表格
| 从类 javax.naming.NamingException 继承的方法 |
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString |
OperationNotSupportedException
public OperationNotSupportedException()
- 构造一个新的 OperationNotSupportedException 实例。所有字段都默认为 null。
OperationNotSupportedException
public OperationNotSupportedException(String explanation)
- 使用解释构造一个新的 OperationNotSupportedException 实例。其他所有字段都默认为 null。
- 参数:
explanation - 有关此异常的附加详细信息(可能为 null)。- 另请参见:
Throwable.getMessage()