@InterfaceAudience.Public
@InterfaceStability.Unstable
public class MultiObjectDeleteException
extends software.amazon.awssdk.services.s3.model.S3Exception
S3AFileSystem.deleteObjects(software.amazon.awssdk.services.s3.model.DeleteObjectsRequest)
when
one or more of the keys could not be deleted.
Used to reproduce the behaviour of SDK v1 for partial failures
on DeleteObjects. In SDK v2, the errors are returned as part of
the response objects.Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_DENIED
This is the exception exit code if access was denied on a delete.
|
Constructor and Description |
---|
MultiObjectDeleteException(List<software.amazon.awssdk.services.s3.model.S3Error> errors) |
Modifier and Type | Method and Description |
---|---|
List<software.amazon.awssdk.services.s3.model.S3Error> |
errors() |
static String |
errorToString(software.amazon.awssdk.services.s3.model.S3Error error)
Convert an error to a string.
|
IOException |
translateException(String message)
A
MultiObjectDeleteException is raised if one or more
paths listed in a bulk DELETE operation failed. |
builder, serializableBuilderClass, toBuilder
awsErrorDetails, getMessage, isClockSkewException, isThrottlingException
extendedRequestId, requestId, sdkFields, statusCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String ACCESS_DENIED
public MultiObjectDeleteException(List<software.amazon.awssdk.services.s3.model.S3Error> errors)
public List<software.amazon.awssdk.services.s3.model.S3Error> errors()
public IOException translateException(String message)
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 exceptionpublic static String errorToString(software.amazon.awssdk.services.s3.model.S3Error error)
error
- error from a delete requestCopyright © 2008–2024 Apache Software Foundation. All rights reserved.