Cause is used only in the message passed to the constructor of PyExternalProcessException

This commit is contained in:
Andrey Vlasovskikh
2014-09-22 19:02:05 +04:00
parent 90fdcf3276
commit f4d21231ee
2 changed files with 1 additions and 9 deletions
@@ -45,14 +45,6 @@ public class PyExternalProcessException extends ExecutionException {
myMessage = stripLinesWithoutLineFeeds(message);
}
public PyExternalProcessException(int retcode, @NotNull String name, @NotNull List<String> args, @NotNull String message, Throwable cause) {
super(String.format("External process error '%s %s':\n%s", name, StringUtil.join(args, " "), message), cause);
myRetcode = retcode;
myName = name;
myArgs = args;
myMessage = stripLinesWithoutLineFeeds(message);
}
@Override
public String toString() {
final StringBuilder b = new StringBuilder();
@@ -148,7 +148,7 @@ public class PyRemotePackageManagerImpl extends PyPackageManagerImpl {
return processOutput;
}
catch (ExecutionException e) {
throw new PyExternalProcessException(ERROR_INVALID_SDK, helperPath, args, "Error running SDK: " + e.getMessage(), e);
throw new PyExternalProcessException(ERROR_INVALID_SDK, helperPath, args, "Error running SDK: " + e.getMessage());
}
}
else {