javax.xml.bind
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.bind.JAXBException
              extended by javax.xml.bind.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends JAXBException

The MarshalException is a subclass of the JAXBException being thrown if the validation of a JAXB object failed.

Since:
JAXB1.0
Author:
JSR-31
See Also:
Serialized Form

Constructor Summary
ValidationException(java.lang.String pMessage)
          Creates a new ValidationException with the specified detail message.
ValidationException(java.lang.String pMessage, java.lang.String pErrorCode)
          Creates a new ValidationException with the specified detail message and vendor specific error code.
ValidationException(java.lang.String pMessage, java.lang.String pErrorCode, java.lang.Throwable pLinkedException)
          Creates a new ValidationException with the specified detail message, error code, and linked exception.
ValidationException(java.lang.String pMessage, java.lang.Throwable pLinkedException)
          Creates a new ValidationException with the specified detail message and linked exception.
ValidationException(java.lang.Throwable pLinkedException)
          Creates a new ValidationException with the specified linked exception.
 
Method Summary
 
Methods inherited from class javax.xml.bind.JAXBException
getErrorCode, getLinkedException, printStackTrace, printStackTrace, printStackTrace, setLinkedException, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(java.lang.String pMessage)

Creates a new ValidationException with the specified detail message.

Parameters:
pMessage - The detail message.

ValidationException

public ValidationException(java.lang.String pMessage,
                           java.lang.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(java.lang.Throwable pLinkedException)

Creates a new ValidationException with the specified linked exception.

Parameters:
pLinkedException - The linked exception.

ValidationException

public ValidationException(java.lang.String pMessage,
                           java.lang.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(java.lang.String pMessage,
                           java.lang.String pErrorCode,
                           java.lang.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.