FileDocCategorySizeDatePackage
PropertyException.javaAPI DocJava SE 6 API3013Tue Jun 10 00:27:04 BST 2008javax.xml.bind

PropertyException

public class PropertyException extends JAXBException
This exception indicates that an error was encountered while getting or setting a property.
author
  • Ryan Shoemaker, Sun Microsystems, Inc.
  • Kohsuke Kawaguchi, Sun Microsystems, Inc.
  • Joe Fialli, Sun Microsystems, Inc.
version
$Revision: 1.2 $ $Date: 2004/06/14 21:23:04 $
see
JAXBContext
see
Validator
see
Unmarshaller
since
JAXB1.0

Fields Summary
Constructors Summary
public PropertyException(String message)
Construct a PropertyException with the specified detail message. The errorCode and linkedException will default to null.

param
message a description of the exception

    	super(message);
    
public PropertyException(String message, String errorCode)
Construct a PropertyException with the specified detail message and vendor specific errorCode. The linkedException will default to null.

param
message a description of the exception
param
errorCode a string specifying the vendor specific error code

    	super(message, errorCode);
    
public PropertyException(Throwable exception)
Construct a PropertyException with a linkedException. The detail message and vendor specific errorCode will default to null.

param
exception the linked exception

    	super(exception);
    
public PropertyException(String message, Throwable exception)
Construct a PropertyException with the specified detail message and linkedException. The errorCode will default to null.

param
message a description of the exception
param
exception the linked exception

    	super(message, exception);
    
public PropertyException(String message, String errorCode, Throwable exception)
Construct a PropertyException with the specified detail message, vendor specific errorCode, and linkedException.

param
message a description of the exception
param
errorCode a string specifying the vendor specific error code
param
exception the linked exception

    	super(message, errorCode, exception);
    
public PropertyException(String name, Object value)
Construct a PropertyException whose message field is set based on the name of the property and value.toString().

param
name the name of the property related to this exception
param
value the value of the property related to this exception

    	super( Messages.format( Messages.NAME_VALUE, 
                                        name, 
                                        value.toString() ) );
    
Methods Summary