ProcessExitException Class — spring-boot Architecture
Architecture documentation for the ProcessExitException class in ProcessExitException.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/core/ProcessExitException.java lines 28–71
class ProcessExitException extends RuntimeException {
private final int exitCode;
private final String[] command;
private final String stdOut;
private final String stdErr;
ProcessExitException(int exitCode, String[] command, String stdOut, String stdErr) {
this(exitCode, command, stdOut, stdErr, null);
}
ProcessExitException(int exitCode, String[] command, String stdOut, String stdErr, @Nullable Throwable cause) {
super(buildMessage(exitCode, command, stdOut, stdErr), cause);
this.exitCode = exitCode;
this.command = command;
this.stdOut = stdOut;
this.stdErr = stdErr;
}
private static String buildMessage(int exitCode, String[] command, String stdOut, String strErr) {
return "'%s' failed with exit code %d.\n\nStdout:\n%s\n\nStderr:\n%s".formatted(String.join(" ", command),
exitCode, stdOut, strErr);
}
int getExitCode() {
return this.exitCode;
}
String[] getCommand() {
return this.command;
}
String getStdOut() {
return this.stdOut;
}
String getStdErr() {
return this.stdErr;
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free