spring-framework / org.springframework.oxm.jibx / JibxMarshaller / convertJibxException

convertJibxException

open fun convertJibxException(ex: JiBXException, marshalling: Boolean): XmlMappingException

Convert the given JiBXException to an appropriate exception from the org.springframework.oxm hierarchy.

A boolean flag is used to indicate whether this exception occurs during marshalling or unmarshalling, since JiBX itself does not make this distinction in its exception hierarchy.

Parameters

ex - JiBXException that occurred

marshalling - indicates whether the exception occurs during marshalling (true), or unmarshalling (false)

Return
the corresponding XmlMappingException