use of com.intellij.openapi.externalSystem.model.ExternalSystemException in project intellij-community by JetBrains.
the class ExternalSystemTaskManagerWrapper method executeTasks.
@Override
public void executeTasks(@NotNull ExternalSystemTaskId id, @NotNull List<String> taskNames, @NotNull String projectPath, @Nullable S settings, @Nullable String jvmAgentSetup) throws RemoteException, ExternalSystemException {
myProgressManager.onStart(id, projectPath);
try {
getDelegate().executeTasks(id, taskNames, projectPath, settings, jvmAgentSetup);
myProgressManager.onSuccess(id);
} catch (ExternalSystemException e) {
myProgressManager.onFailure(id, e);
throw e;
} catch (Exception e) {
myProgressManager.onFailure(id, e);
throw new ExternalSystemException(e);
} finally {
myProgressManager.onEnd(id);
}
}
Aggregations