code: @Override
      @Transactional
      public Snapshot transferError(String snapshotId, String errorDetails)
          throws SnapshotException {
          try {
              Snapshot snapshot = getSnapshot(snapshotId);
  
              // Set snapshot state in the db
              snapshot = changeSnapshotStatus(snapshot, SnapshotStatus.ERROR, errorDetails);
  
              // Send email to duracloud administrators
              String subject = "Snapshot ERROR: " + snapshotId;
              String message = "A snapshot process has been halted and set to the " +
                               "error state.\n\nSnapshot ID: " + snapshotId +
                               "\nReported Error: " + errorDetails;
              String[] recipients = bridgeConfig.getDuracloudEmailAddresses();
              notificationManager.sendNotification(NotificationType.EMAIL,
                                                   subject,
                                                   message,
                                                   recipients);
  
              log.info("successfully set snapshot " + snapshotId +
                       " into error state based on the following error details: " +
                       errorDetails);
  
              return snapshot;
          } catch (Exception e) {
              String message = "failed to set snapshot into error state due to: " +
                               e.getMessage();
              log.error(message, e);
              throw new SnapshotManagerException(e.getMessage());
          }
      }
docs: /* (non-Javadoc)
  @see org.duracloud.snapshot.service.SnapshotManager#transferError(java.lang.String)