JavaTM Platform
Standard Ed. 6

javax.xml.bind
类 PropertyException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 javax.xml.bind.JAXBException
              继承者 javax.xml.bind.PropertyException
所有已实现的接口:
Serializable

public class PropertyException
     
extends JAXBException

此异常指示在获取或设置属性时遇到一个错误。

从以下版本开始:
JAXB1.0
另请参见:
JAXBContext, Validator, Unmarshaller, 序列化表格

构造方法摘要
PropertyException(String message)
          构造带指定详细消息的 PropertyException。
PropertyException(String name, Object value)
          构造一个基于属性名称和 value.toString() 设置其消息字段的 PropertyException。
PropertyException(String message, String errorCode)
          构造带指定详细消息和特定于供应商的 errorCode 的 PropertyException。
PropertyException(String message, String errorCode, Throwable exception)
          构造带指定的详细消息、特定于供应商的 errorCode 和 linkedException 的 PropertyException。
PropertyException(String message, Throwable exception)
          构造带指定详细消息和 linkedException 的 PropertyException。
PropertyException(Throwable exception)
          构造带有一个 linkedException 的 PropertyException。
 
方法摘要
 
从类 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
 

构造方法详细信息

PropertyException

public PropertyException(String message)
构造带指定详细消息的 PropertyException。errorCode 和 linkedException 将默认为 null。

参数:
message - 对异常的描述

PropertyException

public PropertyException(String message,
                         String errorCode)
构造带指定详细消息和特定于供应商的 errorCode 的 PropertyException。linkedException 将默认为 null。

参数:
message - 对异常的描述
errorCode - 指定特定于供应商的错误代码的字符串

PropertyException

public PropertyException(Throwable exception)
构造带有一个 linkedException 的 PropertyException。详细消息和特定于供应商的 errorCode 将默认为 null。

参数:
exception - 链接的异常

PropertyException

public PropertyException(String message,
                         Throwable exception)
构造带指定详细消息和 linkedException 的 PropertyException。errorCode 将默认为 null。

参数:
message - 对异常的描述
exception - 链接的异常

PropertyException

public PropertyException(String message,
                         String errorCode,
                         Throwable exception)
构造带指定的详细消息、特定于供应商的 errorCode 和 linkedException 的 PropertyException。

参数:
message - 对异常的描述
errorCode - 指定特定于供应商的错误代码的字符串
exception - 链接的异常

PropertyException

public PropertyException(String name,
                         Object value)
构造一个基于属性名称和 value.toString() 设置其消息字段的 PropertyException。

参数:
name - 与此异常相关的属性的名称
value - 与此异常相关的属性的值

JavaTM Platform
Standard Ed. 6

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

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