exitValue

public abstract int exitValue()

Returns the exit value of the process.

Return

the process exit code (conventionally 0 indicates success)

Throws

if the process has not yet terminated or no exit value exists

if interrupted while retrieving the exit value