public final class MultiObjectDeleteSupport extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_DENIED
This is the exception exit code if access was denied on a delete.
|
Modifier and Type | Method and Description |
---|---|
static IOException |
translateDeleteException(String message,
com.amazonaws.services.s3.model.MultiObjectDeleteException deleteException)
A
MultiObjectDeleteException is raised if one or more
paths listed in a bulk DELETE operation failed. |
public static final String ACCESS_DENIED
public static IOException translateDeleteException(String message, com.amazonaws.services.s3.model.MultiObjectDeleteException deleteException)
MultiObjectDeleteException
is raised if one or more
paths listed in a bulk DELETE operation failed.
The top-level exception is therefore just "something wasn't deleted",
but doesn't include the what or the why.
This translation will extract an AccessDeniedException if that's one of
the causes, otherwise grabs the status code and uses it in the
returned exception.message
- text for the exceptiondeleteException
- the delete exception. to translateCopyright © 2008–2023 Apache Software Foundation. All rights reserved.