check

fun check()

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

Throws

if exitCode != 0