Package com.amazonaws.services.s3.model
Class MultiObjectDeleteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.amazonaws.AmazonClientException
com.amazonaws.AmazonServiceException
com.amazonaws.services.s3.model.AmazonS3Exception
com.amazonaws.services.s3.model.MultiObjectDeleteException
- All Implemented Interfaces:
Serializable
Exception for partial or total failure of the multi-object delete API,
including the errors that occurred. For successfully deleted objects, refer
to
getDeletedObjects()
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An error that occurred when deleting an object.Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException
AmazonServiceException.ErrorType
-
Constructor Summary
ConstructorsConstructorDescriptionMultiObjectDeleteException
(Collection<MultiObjectDeleteException.DeleteError> errors, Collection<DeleteObjectsResult.DeletedObject> deletedObjects) -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of successfully deleted objects from this request.Always returnsnull
since this exception represents a "successful" response from the service with no top-level error code.Returns the list of errors from the attempted delete operation.Methods inherited from class com.amazonaws.services.s3.model.AmazonS3Exception
getAdditionalDetails, getCloudFrontId, getErrorResponseXml, getExtendedRequestId, setAdditionalDetails, setCloudFrontId, setExtendedRequestId, toString
Methods inherited from class com.amazonaws.AmazonServiceException
getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
Methods inherited from class com.amazonaws.AmazonClientException
isRetryable
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
MultiObjectDeleteException
public MultiObjectDeleteException(Collection<MultiObjectDeleteException.DeleteError> errors, Collection<DeleteObjectsResult.DeletedObject> deletedObjects)
-
-
Method Details
-
getErrorCode
Always returnsnull
since this exception represents a "successful" response from the service with no top-level error code. UsegetErrors()
to retrieve a list of objects whose deletion failed, along with the error code and message for each individual failure.- Overrides:
getErrorCode
in classAmazonServiceException
- Returns:
- The AWS error code represented by this exception.
-
getDeletedObjects
Returns the list of successfully deleted objects from this request. IfDeleteObjectsRequest.getQuiet()
is true, only error responses will be returned from s3. -
getErrors
Returns the list of errors from the attempted delete operation.
-