An instance of ValidationEventHandler
allows to customize the reply to instances of {@link javax.xml.bind.ValidationEvent}. By default, there is a standard ValidationEventHandler
, converting errors and fatal errors in Exceptions.
The JAXB user creates instances of ValidationEventHandler
and registers them with the {@link Marshaller}, {@link Unmarshaller}, or {@link Validator}. The JAXB provider is required not to throw exceptions directly, but to convert all detected problems into events, which are fired on the ValidationEventHandler
.
@since JAXB1.0
@author JSR-31
@see Marshaller
@see Unmarshaller
@see javax.xml.bind.ValidationEvent