private void logMultiObjectDeleteException(MultiObjectDeleteException multiObjectDeleteException){
  StringBuilder builder=new StringBuilder(128);
  builder.append(String.format("Error deleting multiple objects. Below are the list of objects which failed to delete.%n"));
  List<DeleteError> deleteErrors=multiObjectDeleteException.getErrors();
  for (  DeleteError deleteError : deleteErrors) {
    String key=deleteError.getKey();
    String versionId=deleteError.getVersionId();
    String code=deleteError.getCode();
    String message=deleteError.getMessage();
    builder.append(String.format("s3Key=\"%s\" s3VersionId=\"%s\" s3DeleteErrorCode=\"%s\" s3DeleteErrorMessage=\"%s\"%n",key,versionId,code,message));
  }
  LOGGER.error(builder.toString());
}

private void logMultiObjectDeleteException ( MultiObjectDeleteException multiObjectDeleteException ) { StringBuilder builder = new StringBuilder ( 128 ) ; builder . append ( String . format ( "Error deleting multiple objects. Below are the list of objects which failed to delete.%n" ) ) ; List < DeleteError > deleteErrors = multiObjectDeleteException . getErrors ( ) ; for ( DeleteError deleteError : deleteErrors ) { String key = deleteError . getKey ( ) ; String versionId = deleteError . getVersionId ( ) ; String code = deleteError . getCode ( ) ; String message = deleteError . getMessage ( ) ; builder . append ( String . format ( "s3Key=\"%s\" s3VersionId=\"%s\" s3DeleteErrorCode=\"%s\" s3DeleteErrorMessage=\"%s\"%n" , key , versionId , code , message ) ) ; } LOGGER . error ( builder . toString ( ) ) ; }
logs the given multiobjectdeleteexception .
