CommunicateResult

data class CommunicateResult(val exitCode: Int, val output: String, val errors: String)

Result tuple of Process.communicate().

Parameters

exitCode

process exit code. Is 0 if the process terminated normally

output

stdout pipe output, or empty if stdout wasn't a pipe

errors

stderr pipe output, or empty if stderr wasn't a pipe

Constructors

Link copied to clipboard
constructor(exitCode: Int, output: String, errors: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun check()

Check that the process exited normally, ie with exitCode 0. If not, throw ProcessExitException.