JavaTM 2 Platform
Standard Ed. 6

javax.naming.directory
类 SchemaViolationException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 javax.naming.NamingException
              继承者 javax.naming.directory.SchemaViolationException
所有已实现的接口:
Serializable

public class SchemaViolationException
extends NamingException

当方法在某些方面违反模式时,抛出此异常。修改违反对象模式定义的对象属性就是一个违反模式的示例。另一个示例是,将对象重命名或移动到违反名称空间模式定义的名称空间部分。

应用于 NamingException 的同步和序列化问题在这里可以直接应用。

从以下版本开始:
1.3
另请参见:
Context.bind(javax.naming.Name, java.lang.Object), DirContext.bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes), Context.rebind(javax.naming.Name, java.lang.Object), DirContext.rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes), DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes), Context.createSubcontext(javax.naming.Name), DirContext.modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes), 序列化表格

字段摘要
 
从类 javax.naming.NamingException 继承的字段
remainingName, resolvedName, resolvedObj, rootException
 
构造方法摘要
SchemaViolationException()
          构造一个新的 SchemaViolationException 实例。
SchemaViolationException(String explanation)
          使用所提供的解释构造一个新的 SchemaViolationException 实例。
 
方法摘要
 
从类 javax.naming.NamingException 继承的方法
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

SchemaViolationException

public SchemaViolationException()
构造一个新的 SchemaViolationException 实例。将所有字段都设置为 null。


SchemaViolationException

public SchemaViolationException(String explanation)
使用所提供的解释构造一个新的 SchemaViolationException 实例。将所有其他字段都设置为 null。

参数:
explanation - 关于此异常的详细信息。可以为 null。
另请参见:
Throwable.getMessage()

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策