Package org.apache.hadoop.fs.s3a.impl
Class MultiObjectDeleteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.awssdk.core.exception.SdkException
software.amazon.awssdk.core.exception.SdkServiceException
software.amazon.awssdk.awscore.exception.AwsServiceException
software.amazon.awssdk.services.s3.model.S3Exception
org.apache.hadoop.fs.s3a.impl.MultiObjectDeleteException
- All Implemented Interfaces:
Serializable,software.amazon.awssdk.core.SdkPojo
@Public
@Unstable
public class MultiObjectDeleteException
extends software.amazon.awssdk.services.s3.model.S3Exception
Exception raised in
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.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.awssdk.services.s3.model.S3Exception
software.amazon.awssdk.services.s3.model.S3Exception.Builder, software.amazon.awssdk.services.s3.model.S3Exception.BuilderImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis is the exception exit code if access was denied on a delete. -
Constructor Summary
ConstructorsConstructorDescriptionMultiObjectDeleteException(List<software.amazon.awssdk.services.s3.model.S3Error> errors) -
Method Summary
Modifier and TypeMethodDescriptionList<software.amazon.awssdk.services.s3.model.S3Error>errors()static StringerrorToString(software.amazon.awssdk.services.s3.model.S3Error error) Convert an error to a string.translateException(String message) AMultiObjectDeleteExceptionis raised if one or more paths listed in a bulk DELETE operation failed.Methods inherited from class software.amazon.awssdk.services.s3.model.S3Exception
builder, serializableBuilderClass, toBuilderMethods inherited from class software.amazon.awssdk.awscore.exception.AwsServiceException
awsErrorDetails, getMessage, isClockSkewException, isThrottlingExceptionMethods inherited from class software.amazon.awssdk.core.exception.SdkServiceException
extendedRequestId, isRetryableException, requestId, sdkFields, statusCodeMethods inherited from class software.amazon.awssdk.core.exception.SdkException
create, numAttempts, rawMessage, retryableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField
-
Field Details
-
ACCESS_DENIED
This is the exception exit code if access was denied on a delete. "AccessDenied".- See Also:
-
-
Constructor Details
-
MultiObjectDeleteException
-
-
Method Details
-
errors
-
translateException
AMultiObjectDeleteExceptionis 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.- Parameters:
message- text for the exception- Returns:
- an IOE with more detail.
-
errorToString
Convert an error to a string.- Parameters:
error- error from a delete request- Returns:
- string value
-