use of org.mule.runtime.api.lifecycle.LifecycleException in project mule by mulesoft.
the class AbstractLifecycleManager method invokePhase.
protected void invokePhase(String phase, Object object, LifecycleCallback callback) throws LifecycleException {
try {
this.lastPhaseExecuted = phase;
setExecutingPhase(phase);
callback.onTransition(phase, object);
setCurrentPhase(phase);
lastPhaseExecutionFailed = false;
}// In the case of a connection exception, trigger the reconnection strategy.
catch (ConnectException ce) {
lastPhaseExecutionFailed = true;
doOnConnectException(ce);
} catch (LifecycleException le) {
lastPhaseExecutionFailed = true;
throw le;
} catch (Exception e) {
lastPhaseExecutionFailed = true;
throw new LifecycleException(e, object);
} finally {
setExecutingPhase(null);
}
}
Aggregations