throw new DefaultMuleException(MessageFactory.createStaticMessage(String.format(
"Was interrupted while waiting for route %d", routeIndex)), e);
}
catch (Exception e)
{
exception = new DispatchException(MessageFactory.createStaticMessage(String.format(
"route number %d failed to be executed", routeIndex)), event, route, e);
}
remainingTimeout -= System.currentTimeMillis() - startedAt;