String msg = "Error scheduling task: "
+ CloudControllerConstants.TOPOLOGY_SYNC_TASK_NAME;
log.error(msg, e);
if (tm != null) {
try {
tm.deleteTask(CloudControllerConstants.TOPOLOGY_SYNC_TASK_NAME);
} catch (TaskException e1) {
log.error(e1);
}
}
throw new CloudControllerException(msg, e);