javax.xml.bind

Class ValidationException

public class ValidationException extends JAXBException

The MarshalException is a subclass of the {@link javax.xml.bind.JAXBException} being thrown if the validation of a JAXB object failed.

Since: JAXB1.0

Author: JSR-31

Constructor Summary
ValidationException(String pMessage)

Creates a new ValidationException with the specified detail message.

ValidationException(String pMessage, String pErrorCode)

Creates a new ValidationException with the specified detail message and vendor specific error code.

ValidationException(Throwable pLinkedException)

Creates a new ValidationException with the specified linked exception.

ValidationException(String pMessage, Throwable pLinkedException)

Creates a new ValidationException with the specified detail message and linked exception.

ValidationException(String pMessage, String pErrorCode, Throwable pLinkedException)

Creates a new ValidationException with the specified detail message, error code, and linked exception.

Constructor Detail

ValidationException

public ValidationException(String pMessage)

Creates a new ValidationException with the specified detail message.

Parameters: pMessage The detail message.

ValidationException

public ValidationException(String pMessage, String pErrorCode)

Creates a new ValidationException with the specified detail message and vendor specific error code.

Parameters: pMessage The detail message. pErrorCode The error code.

ValidationException

public ValidationException(Throwable pLinkedException)

Creates a new ValidationException with the specified linked exception.

Parameters: pLinkedException The linked exception.

ValidationException

public ValidationException(String pMessage, Throwable pLinkedException)

Creates a new ValidationException with the specified detail message and linked exception.

Parameters: pMessage The detail message. pLinkedException The linked exception.

ValidationException

public ValidationException(String pMessage, String pErrorCode, Throwable pLinkedException)

Creates a new ValidationException with the specified detail message, error code, and linked exception.

Parameters: pMessage The detail message. pErrorCode The vendor specific error code. pLinkedException The linked exception.