logger.debug ("Invocation resulted in: " + e.toString());
}
// try to find mapping
if (e.getCause() != null && exceptionMappings != null) {
for (Iterator i = exceptionMappings.iterator(); i.hasNext();) {
ExceptionMapping m = (ExceptionMapping)i.next ();
if (m.getJavaException().isInstance(e.getCause())) {
if (m.getProcessException() == null) {
break;
}
ResultProvider.ExceptionResult eres
= new ResultProvider.ExceptionResult
(m.getProcessException(), m.getSuspendActivity());
if (logger.isDebugEnabled()) {
logger.debug
("Exception mapped to: " + eres.toString());
}
return new InvocationResult (eres);