|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.bind Class PropertyException
java.lang.Object java.lang.Throwable java.lang.Exception javax.xml.bind.JAXBException javax.xml.bind.PropertyException
- All Implemented Interfaces:
- Serializable
public class PropertyException
- extends JAXBException
Extends:
Throwable > Exception > JAXBException
此异常指示在获取或设置属性时遇到一个错误。
version |
| |
since | JAXB1.0 | |
See also | javax.xml.bind.JAXBContext, javax.xml.bind.Validator, javax.xml.bind.Unmarshaller |
This exception indicates that an error was encountered while getting or setting a property.
- Since:
- JAXB1.0
- Version:
- $Revision: 1.1 $ $Date: 2004/12/14 21:50:40 $
- Author:
- Ryan Shoemaker, Sun Microsystems, Inc.
- Kohsuke Kawaguchi, Sun Microsystems, Inc.
- Joe Fialli, Sun Microsystems, Inc.
- See Also:
JAXBContext
,Validator
,Unmarshaller
, Serialized Form
Constructor Summary | |
---|---|
PropertyException(String message)
Construct a PropertyException with the specified detail message. |
|
PropertyException(String name,
Object value)
Construct a PropertyException whose message field is set based on the name of the property and value.toString(). |
|
PropertyException(String message,
String errorCode)
Construct a PropertyException with the specified detail message and vendor specific errorCode. |
|
PropertyException(String message,
String errorCode,
Throwable exception)
Construct a PropertyException with the specified detail message, vendor specific errorCode, and linkedException. |
|
PropertyException(String message,
Throwable exception)
Construct a PropertyException with the specified detail message and linkedException. |
|
PropertyException(Throwable exception)
Construct a PropertyException with a linkedException. |
Method Summary |
---|
Methods inherited from class javax.xml.bind.JAXBException |
---|
getCause, getErrorCode, getLinkedException, printStackTrace, printStackTrace, printStackTrace, setLinkedException, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public
PropertyException(String message)
构造带指定详细消息的 PropertyException。errorCode 和 linkedException 将默认为 null。
message | 对异常的描述 |
PropertyException
public PropertyException(String message)
- Construct a PropertyException with the specified detail message. The
errorCode and linkedException will default to null.
- Parameters:
message
- a description of the exception
public
PropertyException(String message, String errorCode)
构造带指定详细消息和特定于供应商的 errorCode 的 PropertyException。linkedException 将默认为 null。
message | 对异常的描述 |
errorCode | 指定特定于供应商的错误代码的字符串 |
PropertyException
public PropertyException(String message, String errorCode)
- Construct a PropertyException with the specified detail message and
vendor specific errorCode. The linkedException will default to null.
- Parameters:
message
- a description of the exceptionerrorCode
- a string specifying the vendor specific error code
public
PropertyException(Throwable exception)
构造带有一个 linkedException 的 PropertyException。详细消息和特定于供应商的 errorCode 将默认为 null。
exception | 链接的异常 |
PropertyException
public PropertyException(Throwable exception)
- Construct a PropertyException with a linkedException. The detail
message and vendor specific errorCode will default to null.
- Parameters:
exception
- the linked exception
public
PropertyException(String message, Throwable exception)
构造带指定详细消息和 linkedException 的 PropertyException。errorCode 将默认为 null。
message | 对异常的描述 |
exception | 链接的异常 |
PropertyException
public PropertyException(String message, Throwable exception)
- Construct a PropertyException with the specified detail message and
linkedException. The errorCode will default to null.
- Parameters:
message
- a description of the exceptionexception
- the linked exception
public
PropertyException(String message, String errorCode, Throwable exception)
构造带指定的详细消息、特定于供应商的 errorCode 和 linkedException 的 PropertyException。
message | 对异常的描述 |
errorCode | 指定特定于供应商的错误代码的字符串 |
exception | 链接的异常 |
PropertyException
public PropertyException(String message, String errorCode, Throwable exception)
- Construct a PropertyException with the specified detail message, vendor
specific errorCode, and linkedException.
- Parameters:
message
- a description of the exceptionerrorCode
- a string specifying the vendor specific error codeexception
- the linked exception
public
PropertyException(String name, Object value)
构造一个基于属性名称和 value.toString() 设置其消息字段的 PropertyException。
name | 与此异常相关的属性的名称 |
value | 与此异常相关的属性的值 |
PropertyException
public PropertyException(String name, Object value)
- Construct a PropertyException whose message field is set based on the
name of the property and value.toString().
- Parameters:
name
- the name of the property related to this exceptionvalue
- the value of the property related to this exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!