code: public void validateProcessOutput(FaxClientSpi faxClientSpi,ProcessOutput processOutput,FaxActionType faxActionType)
      {
          //validate exit code
          int exitCode=processOutput.getExitCode();
          if(exitCode!=0)
          {
              throw new FaxException("Error while invoking fax action process, exit code: "+exitCode+" process output:\n"+processOutput.getOutputText()+"\nprocess error:\n"+processOutput.getErrorText());
          }
      }
docs: This function validates the process output for errors.<br>
  If not valid, an exception should be thrown.
  
  @param   faxClientSpi
  The fax client SPI
  @param   processOutput
  The process output to validate
  @param   faxActionType
  The fax action type