JavaTM 2 Platform
Standard Ed. 6

javax.xml.bind
類別 MarshalException

java.lang.Object
  繼承者 java.lang.Throwable
      繼承者 java.lang.Exception
          繼承者 javax.xml.bind.JAXBException
              繼承者 javax.xml.bind.MarshalException
所有已實作的介面:
Serializable

public class MarshalException
extends JAXBException

此異常指示在執行提供者無法恢復的編組操作時發生錯誤。

ValidationEventHandler 可能導致執行編組操作期間拋出此異常。請參閱 ValidationEventHandler.handleEvent(ValidationEvent)

從以下版本開始:
JAXB1.0
另請參見:
JAXBException, Marshaller, 序列化表格

建構子摘要
MarshalException(String message)
          建構帶指定詳細訊息的 MarshalException。
MarshalException(String message, String errorCode)
          建構帶指定詳細訊息和特定於供應商的 errorCode 的 MarshalException。
MarshalException(String message, String errorCode, Throwable exception)
          建構帶指定的詳細訊息、特定於供應商的 errorCode 和 linkedException 的 MarshalException。
MarshalException(String message, Throwable exception)
          建構帶指定的詳細訊息和 linkedException 的 MarshalException。
MarshalException(Throwable exception)
          建構帶有一個 linkedException 的 MarshalException。
 
方法摘要
 
從類別 javax.xml.bind.JAXBException 繼承的方法
getCause, getErrorCode, getLinkedException, printStackTrace, printStackTrace, printStackTrace, setLinkedException, toString
 
從類別 java.lang.Throwable 繼承的方法
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
從類別 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

建構子詳細資訊

MarshalException

public MarshalException(String message)
建構帶指定詳細訊息的 MarshalException。errorCode 和 linkedException 將預設為 null。

參數:
message - 對異常的描述

MarshalException

public MarshalException(String message,
                        String errorCode)
建構帶指定詳細訊息和特定於供應商的 errorCode 的 MarshalException。linkedException 將預設為 null。

參數:
message - 對異常的描述
errorCode - 指定特定於供應商的錯誤程式碼的字元串

MarshalException

public MarshalException(Throwable exception)
建構帶有一個 linkedException 的 MarshalException。詳細訊息和特定於供應商的 errorCode 將預設為 null。

參數:
exception - 連接的異常

MarshalException

public MarshalException(String message,
                        Throwable exception)
建構帶指定的詳細訊息和 linkedException 的 MarshalException。errorCode 將預設為 null。

參數:
message - 對異常的描述
exception - 連接的異常

MarshalException

public MarshalException(String message,
                        String errorCode,
                        Throwable exception)
建構帶指定的詳細訊息、特定於供應商的 errorCode 和 linkedException 的 MarshalException。

參數:
message - 對異常的描述
errorCode - 指定特定於供應商的錯誤程式碼的字元串
exception - 連接的異常

JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only