mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cause is used only in the message passed to the constructor of PyExternalProcessException
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user