public interface ProcessResult
Modifier and Type | Method and Description |
---|---|
ProcessResult |
assertNormalExitValue()
Throws an exception if the process exited with a non-zero exit value.
|
int |
getExitValue()
Returns the exit value of the process.
|
ProcessResult |
rethrowFailure()
Re-throws any failure executing this process.
|
@NonNull ProcessResult assertNormalExitValue() throws ProcessException
ProcessException
- if the process exited with a non-zero exit valueint getExitValue()
@NonNull ProcessResult rethrowFailure() throws ProcessException
ProcessException
- the execution failure wrapped in a ProcessExecution