code: public synchronized void setJobAsFailed(String errorMessage) {
      mJobInfo.setStatus(Status.FAILED);
      mJobInfo.setErrorMessage(errorMessage);
    }
docs: Sets the job as failed with given error message.
  
  @param errorMessage Error message to set for failure