Top Description Fields Constructors Methods
jakarta.xml.bind

public Class PropertyException

extends JAXBException
Class Inheritance

This exception indicates that an error was encountered while getting or setting a property.
Author
Since
1.6, JAXB 1.0
See Also
JAXBContext, Unmarshaller

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
PropertyException(String
a description of the exception
message
)

Construct a PropertyException with the specified detail message.

public
PropertyException(String
a description of the exception
message
,
String
a string specifying the vendor specific error code
errorCode
)

Construct a PropertyException with the specified detail message and vendor specific errorCode.

public
PropertyException(Throwable
the linked exception
exception
)

Construct a PropertyException with a linkedException.

public
PropertyException(String
a description of the exception
message
,
Throwable
the linked exception
exception
)

Construct a PropertyException with the specified detail message and linkedException.

public
PropertyException(String
a description of the exception
message
,
String
a string specifying the vendor specific error code
errorCode
,
Throwable
the linked exception
exception
)

Construct a PropertyException with the specified detail message, vendor specific errorCode, and linkedException.

public
PropertyException(String
the name of the property related to this exception
name
,
Object
the value of the property related to this exception
value
)

Construct a PropertyException whose message field is set based on the name of the property and value.toString().

Method Summary

Inherited from jakarta.xml.bind.JAXBException:
getCausegetErrorCodegetLinkedExceptionprintStackTraceprintStackTraceprintStackTracesetLinkedExceptiontoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.xml.bind.JAXBException.serialVersionUID.

Constructor Detail

PropertyExceptionback to summary
public PropertyException(String message)

Construct a PropertyException with the specified detail message. The errorCode and linkedException will default to null.

Parameters
message:String

a description of the exception

PropertyExceptionback to summary
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:String

a description of the exception

errorCode:String

a string specifying the vendor specific error code

PropertyExceptionback to summary
public PropertyException(Throwable exception)

Construct a PropertyException with a linkedException. The detail message and vendor specific errorCode will default to null.

Parameters
exception:Throwable

the linked exception

PropertyExceptionback to summary
public PropertyException(String message, Throwable exception)

Construct a PropertyException with the specified detail message and linkedException. The errorCode will default to null.

Parameters
message:String

a description of the exception

exception:Throwable

the linked exception

PropertyExceptionback to summary
public PropertyException(String message, String errorCode, Throwable exception)

Construct a PropertyException with the specified detail message, vendor specific errorCode, and linkedException.

Parameters
message:String

a description of the exception

errorCode:String

a string specifying the vendor specific error code

exception:Throwable

the linked exception

PropertyExceptionback to summary
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:String

the name of the property related to this exception

value:Object

the value of the property related to this exception