com.android.ide.common.process
Interface ProcessResult


public interface ProcessResult

The result of executing an external process.


Method Summary
 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.
 

Method Detail

assertNormalExitValue

@NonNull
ProcessResult assertNormalExitValue()
                                    throws ProcessException
Throws an exception if the process exited with a non-zero exit value.

Returns:
this
Throws:
ProcessException - if the process exited with a non-zero exit value

getExitValue

int getExitValue()
Returns the exit value of the process.


rethrowFailure

@NonNull
ProcessResult rethrowFailure()
                             throws ProcessException
Re-throws any failure executing this process.

Returns:
this
Throws:
ProcessException - the execution failure wrapped in a ProcessExecution