String () { final StringBuilder b = new StringBuilder(); b.append("The following command was executed:\n\n"); final String command = getCommand() + " " + StringUtil.join(getArgs(), " "); b.append(command); b.append("\n\n"); b.append("The exit code: ").append(myExitCode).append("\n"); b.append("The error output of the command:\n\n"); b.append(getStdout()); b.append("\n"); b.append(getStderr()); b.append("\n"); b.append(getMessage()); return b.toString(); }