throwIfFailed method

ProcessResultData throwIfFailed()

This result, or a ProcessFailedException when the command failed.

Implementation

ProcessResultData throwIfFailed() {
  if (failed) {
    throw ProcessFailedException(this);
  }
  return this;
}