If I have a service which throws an exception that doesn't extend AxisFault, the
exception is wrapped as an AxisFault, but there doesn't seem to be any way to get the
original exception.
I noticed that there is an element "exceptionName" in the fault-details, but that is
only set if the exception is a subclass of AxisFault, as you can see from the piece of
code in AxisFault.initFromException:
...
if ((target instanceof AxisFault) &&
(target.getClass() != AxisFault.class)) {
el = XMLUtils.StringToElement(Constants.NS_URI_AXIS,
"exceptionName",
target.getClass().getName());
faultDetails.add(el);
}
...
Are there plans to add a "getRootException" method to AxisFault which returns the root
exception?
Any help would be appreciated.
Thanks,
Rob