Creates an UnmarshalException from a SAXException.
This is an utility method provided for the derived classes.
When a provider-implemented ContentHandler wants to throw a
JAXBException, it needs to wrap the exception by a SAXException.
If the unmarshaller implementation blindly wrap SAXException
by JAXBException, such an exception will be a JAXBException
wrapped by a SAXException wrapped by another JAXBException.
This is silly.
This method checks the nested exception of SAXException
and reduce those excessive wrapping.
Returns:
the resulting UnmarshalException