public static void logFailedItemErrors(JobStore jobStore, UUID jobId, ImmutableList<ErrorDetail> errorDetails) throws IOException {
    jobStore.addErrorsToJob(jobId, errorDetails);
  }
Helper class that provides functionality for creating errors & logging them to data store.
This class logs errors that should appear as failures in the completion email.
extensions/data-transfer/portability-data-transfer-google/src/main/java/org/datatransferproject/datatransfer/google/common/GoogleErrorLogger.java