Top Description Fields Constructors Methods
javax.xml.bind

public Class ValidationException

extends JAXBException
Class Inheritance

This exception indicates that an error has occurred while performing a validate operation.

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

Author
Since
1.6, JAXB 1.0
See Also
JAXBException, Validator

Field Summary

Inherited from javax.xml.bind.JAXBException:
serialVersionUID

Constructor Summary

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

Construct an ValidationException with the specified detail message.

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

Construct an ValidationException with the specified detail message and vendor specific errorCode.

public
ValidationException(Throwable
the linked exception
exception
)

Construct an ValidationException with a linkedException.

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

Construct an ValidationException with the specified detail message and linkedException.

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

Construct an ValidationException with the specified detail message, vendor specific errorCode, and linkedException.

Method Summary

Inherited from javax.xml.bind.JAXBException:
getCausegetErrorCodegetLinkedExceptionprintStackTraceprintStackTraceprintStackTracesetLinkedExceptiontoString

Constructor Detail

ValidationExceptionback to summary
public ValidationException(String message)

Construct an ValidationException with the specified detail message. The errorCode and linkedException will default to null.

Parameters
message:String

a description of the exception

ValidationExceptionback to summary
public ValidationException(String message, String errorCode)

Construct an ValidationException 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

ValidationExceptionback to summary
public ValidationException(Throwable exception)

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

Parameters
exception:Throwable

the linked exception

ValidationExceptionback to summary
public ValidationException(String message, Throwable exception)

Construct an ValidationException 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

ValidationExceptionback to summary
public ValidationException(String message, String errorCode, Throwable exception)

Construct an ValidationException 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