- java.lang.Object
 -  
      
- java.lang.Throwable
 -  
        
- java.lang.Exception
 -  
          
- javax.naming.NamingException
 -  
            
- javax.naming.directory.SchemaViolationException
 
 
 
 
 
-  
       
- All Implemented Interfaces:
 -  
         
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), Serialized Form 
 
-  
        
       
-  
             
Field Summary
-  
               
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException 
 -  
               
 
-  
             
构造方法摘要
构造方法 Constructor 描述 SchemaViolationException()构造一个新的SchemaViolationException实例。SchemaViolationException(String explanation)使用提供的说明构造一个新的SchemaViolationException实例。 
-  
             
方法摘要
-  
               
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 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
SchemaViolationException
public SchemaViolationException()
构造一个新的SchemaViolationException实例。 所有字段都设置为null。 
-  
SchemaViolationException
public SchemaViolationException(String explanation)
使用提供的说明构造一个新的SchemaViolationException实例。 所有其他字段都设置为null。- 参数
 -  
              
explanation- 有关此异常的详细信息。 可以为null。 - 另请参见:
 -  
              
Throwable.getMessage() 
 
 -  
 
 -