Jason Pell created CXF-6242:
-------------------------------

             Summary: Ability to configure the format of the marshalling / 
unmarshalling exceptions that are thrown by JAXB when schema validation is 
enabled.
                 Key: CXF-6242
                 URL: https://issues.apache.org/jira/browse/CXF-6242
             Project: CXF
          Issue Type: New Feature
          Components: JAXB Databinding
    Affects Versions: 2.7.14, 3.0.2, 3.1.0
            Reporter: Jason Pell
            Priority: Minor


Add an enhanced CustomValidationEventHandler interface which has two methods:

void onUnmarshallingComplete() throws UnmarshalException;
void onMarshallingComplete() throws MarshalException;

In the JAXBEncoderDecoder unmarshal / marshal methods call the relevant method 
on the event handler and allow the event handler to choose to throw an 
exception based on the events collected in the handleEvent method.

The format of the exception thrown from JAXB is not always very useful in a 
soap fault message, so this handler allows the flexibility to configure more 
appropriate UnmarshalException and MarshalException



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to