UnmarshalException (Java EE 5)

Java EE API


javax.xml.bind Class UnmarshalException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.bind.JAXBException
              extended by javax.xml.bind.UnmarshalException
All Implemented Interfaces:
Serializable

public class UnmarshalException
extends JAXBException

Extends: Throwable > Exception > JAXBException

此异常指示在执行阻止 JAXB 提供者完成操作的解组操作时遇到一个错误。

ValidationEventHandler 可能导致执行解组操作期间抛出此异常。请参阅 ValidationEventHandler.handleEvent(ValidationEvent)

英文文档:

This exception indicates that an error has occurred while performing an unmarshal operation that prevents the JAXB Provider from completing the operation.

The ValidationEventHandler can cause this exception to be thrown during the unmarshal operations. See ValidationEventHandler.handleEvent(ValidationEvent).

Since:
JAXB1.0
Version:
$Revision: 1.1 $
Author:
  • Ryan Shoemaker, Sun Microsystems, Inc.
See Also:
JAXBException, Unmarshaller, ValidationEventHandler, Serialized Form

Constructor Summary
 
Method Summary
 
Methods inherited from class javax.xml.bind.JAXBException
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public UnmarshalException(String message)
构造带指定详细消息的 UnmarshalException。errorCode 和 linkedException 将默认为 null。
message 对异常的描述
英文文档:

UnmarshalException

public UnmarshalException(String message)
Construct an UnmarshalException with the specified detail message. The errorCode and linkedException will default to null.

Parameters:
message - a description of the exception


public UnmarshalException(String message, String errorCode)
构造带指定详细消息和特定于供应商的 errorCode 的 UnmarshalException。linkedException 将默认为 null。
message 对异常的描述
errorCode 指定特定于供应商的错误代码的字符串
英文文档:

UnmarshalException

public UnmarshalException(String message,
                          String errorCode)
Construct an UnmarshalException with the specified detail message and vendor specific errorCode. The linkedException will default to null.

Parameters:
message - a description of the exception
errorCode - a string specifying the vendor specific error code


public UnmarshalException(Throwable exception)
构造带有一个 linkedException 的 UnmarshalException。详细消息和特定于供应商的 errorCode 将默认为 null。
exception 链接的异常
英文文档:

UnmarshalException

public UnmarshalException(Throwable exception)
Construct an UnmarshalException with a linkedException. The detail message and vendor specific errorCode will default to null.

Parameters:
exception - the linked exception


public UnmarshalException(String message, Throwable exception)
构造带指定详细消息和 linkedException 的 UnmarshalException。errorCode 将默认为 null。
message 对异常的描述
exception 链接的异常
英文文档:

UnmarshalException

public UnmarshalException(String message,
                          Throwable exception)
Construct an UnmarshalException with the specified detail message and linkedException. The errorCode will default to null.

Parameters:
message - a description of the exception
exception - the linked exception


public UnmarshalException(String message, String errorCode, Throwable exception)
构造带指定详细消息、特定于供应商的 errorCode 和 linkedException 的 UnmarshalException。
message 对异常的描述
errorCode 指定特定于供应商的错误代码的字符串
exception 链接的异常
英文文档:

UnmarshalException

public UnmarshalException(String message,
                          String errorCode,
                          Throwable exception)
Construct an UnmarshalException with the specified detail message, vendor specific errorCode, and linkedException.

Parameters:
message - a description of the exception
errorCode - a string specifying the vendor specific error code
exception - the linked exception



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!