- java.lang.Object
 -  
      
- java.lang.Throwable
 -  
        
- java.lang.Exception
 -  
          
- javax.xml.bind.JAXBException
 -  
            
- javax.xml.bind.UnmarshalException
 
 
 
 
 
-  
       
- All Implemented Interfaces:
 -  
         
Serializable 
public class UnmarshalException extends JAXBException
此异常表示执行卸载操作时发生错误,阻止JAXB提供程序完成操作。ValidationEventHandler可能导致在解组操作期间抛出此异常。 见ValidationEventHandler.handleEvent(ValidationEvent)。- 从以下版本开始:
 - 1.6,JAXB 1.0
 - 另请参见:
 -  
         
JAXBException,Unmarshaller,ValidationEventHandler, Serialized Form 
 
-  
        
       
-  
             
构造方法摘要
构造方法 Constructor 描述 UnmarshalException(String message)使用指定的详细消息构造UnmarshalException。UnmarshalException(String message, String errorCode)使用指定的详细消息和供应商特定的错误代码构造UnmarshalException。UnmarshalException(String message, String errorCode, Throwable exception)构造具有指定的详细消息,供应商特定的错误代码和linkedException的UnmarshalException。UnmarshalException(String message, Throwable exception)使用指定的详细消息和linkedException构造UnmarshalException。UnmarshalException(Throwable exception)使用linkedException构造UnmarshalException。 
-  
             
方法摘要
-  
               
Methods inherited from class javax.xml.bind.JAXBException
getCause, getErrorCode, getLinkedException, printStackTrace, printStackTrace, printStackTrace, setLinkedException, 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, initCause, setStackTrace 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
UnmarshalException
public UnmarshalException(String message)
使用指定的详细消息构造UnmarshalException。 errorCode和linkedException将默认为null。- 参数
 -  
              
message- 异常的描述 
 
-  
UnmarshalException
public UnmarshalException(String message, String errorCode)
使用指定的详细消息和供应商特定的错误代码构造UnmarshalException。 linkedException将默认为null。- 参数
 -  
              
message- 异常的描述 -  
              
errorCode- 指定供应商特定错误代码的字符串 
 
-  
UnmarshalException
public UnmarshalException(Throwable exception)
使用linkedException构造UnmarshalException。 详细消息和供应商特定的错误代码将默认为null。- 参数
 -  
              
exception- 链接异常 
 
-  
UnmarshalException
public UnmarshalException(String message, Throwable exception)
使用指定的详细消息和linkedException构造UnmarshalException。 errorCode将默认为null。- 参数
 -  
              
message- 异常的描述 -  
              
exception- 链接异常 
 
 -  
 
 -